@luminocity/lemonate-engine 26.3.12 → 26.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41307,7 +41307,7 @@
41307
41307
  }
41308
41308
  }
41309
41309
 
41310
- var engine$1 = "26.3.12";
41310
+ var engine$1 = "26.3.14";
41311
41311
  var bullet = "3.26";
41312
41312
  var lua = "5.4.3";
41313
41313
  var packageVersionInfo = {
@@ -104707,7 +104707,7 @@
104707
104707
  return;
104708
104708
  if (!newActive && this.active) {
104709
104709
  try {
104710
- this.deactivate();
104710
+ this.onSceneDeactivated();
104711
104711
  }
104712
104712
  catch (err) {
104713
104713
  console.error("Error when deactivating: ", err);
@@ -104715,7 +104715,7 @@
104715
104715
  }
104716
104716
  if (newActive && !this.active) {
104717
104717
  try {
104718
- this.activate();
104718
+ this.onSceneActivated();
104719
104719
  }
104720
104720
  catch (err) {
104721
104721
  console.error("Error when deactivating: ", err);
@@ -104732,24 +104732,24 @@
104732
104732
  if (obj)
104733
104733
  obj.visible = this.isRendered();
104734
104734
  }
104735
- activate() {
104735
+ onSceneActivated() {
104736
104736
  for (const child of this.children) {
104737
- child.activate();
104737
+ child.onSceneActivated();
104738
104738
  }
104739
104739
  }
104740
- deactivate() {
104740
+ onSceneDeactivated() {
104741
104741
  for (const child of this.children) {
104742
- child.deactivate();
104742
+ child.onSceneDeactivated();
104743
104743
  }
104744
104744
  }
104745
104745
  setActive(active) {
104746
104746
  this.setFieldValue("Active", active);
104747
104747
  }
104748
- enable() {
104748
+ activate() {
104749
104749
  if (!this.isActive())
104750
104750
  this.setFieldValue("Active", true);
104751
104751
  }
104752
- disable() {
104752
+ deactivate() {
104753
104753
  if (this.isActive())
104754
104754
  this.setFieldValue("Active", false);
104755
104755
  }
@@ -119335,12 +119335,12 @@
119335
119335
  this.isPaused = false;
119336
119336
  }
119337
119337
  }
119338
- activate() {
119339
- super.activate();
119338
+ onSceneActivated() {
119339
+ super.onSceneActivated();
119340
119340
  this.playOrActivate();
119341
119341
  }
119342
- deactivate() {
119343
- super.deactivate();
119342
+ onSceneDeactivated() {
119343
+ super.onSceneDeactivated();
119344
119344
  this.stopOrDeactivate();
119345
119345
  }
119346
119346
  async create() {
@@ -124688,7 +124688,7 @@
124688
124688
  const primary = entry.getFieldValue("Primary");
124689
124689
  const sceneGraph = this.engine.activeSceneGraphCollection.addSceneItem(scene, true, transform);
124690
124690
  if (sceneGraph) {
124691
- sceneGraph.root.setActive(true);
124691
+ sceneGraph.root.onSceneActivated();
124692
124692
  this.engine.eventBus.$emit('project:sceneActivated', sceneGraph.getId());
124693
124693
  if (primary) {
124694
124694
  this._setPrimaryScene(entry);
@@ -124761,7 +124761,7 @@
124761
124761
  if (scene) {
124762
124762
  const sceneGraph = scene.getSceneGraph();
124763
124763
  if (sceneGraph) {
124764
- sceneGraph.root.setActive(false);
124764
+ sceneGraph.root.onSceneDeactivated();
124765
124765
  this.engine.activeSceneGraphCollection.remove(sceneGraph);
124766
124766
  this.engine.eventBus.$emit('project:sceneDeactivated', sceneGraph.getId());
124767
124767
  }
@@ -133748,7 +133748,7 @@
133748
133748
  if (!obj)
133749
133749
  return null;
133750
133750
  if (obj instanceof SgItem) {
133751
- obj.enable();
133751
+ obj.activate();
133752
133752
  }
133753
133753
  }
133754
133754
  disable(params) {
@@ -133756,7 +133756,7 @@
133756
133756
  if (!obj)
133757
133757
  return null;
133758
133758
  if (obj instanceof SgItem) {
133759
- obj.disable();
133759
+ obj.deactivate();
133760
133760
  }
133761
133761
  }
133762
133762
  getParent(params) {
package/dist/player.zip CHANGED
Binary file
@@ -19,8 +19,8 @@ export declare class SgAudio extends SgItem {
19
19
  stop(): void;
20
20
  pause(): void;
21
21
  resume(): void;
22
- activate(): void;
23
- deactivate(): void;
22
+ onSceneActivated(): void;
23
+ onSceneDeactivated(): void;
24
24
  create(): Promise<void>;
25
25
  destroy(noDispose?: boolean, withChildren?: boolean, noRemoveUpdateListener?: boolean): void;
26
26
  _onAudioCollectionUpdate: () => void;
@@ -79,11 +79,11 @@ export declare abstract class SgItem extends SgResourceOwner {
79
79
  isActive(): boolean;
80
80
  updateActive(): Promise<void[] | undefined>;
81
81
  updateRendered(): void;
82
+ onSceneActivated(): void;
83
+ onSceneDeactivated(): void;
84
+ setActive(active: boolean): void;
82
85
  activate(): void;
83
86
  deactivate(): void;
84
- setActive(active: boolean): void;
85
- enable(): void;
86
- disable(): void;
87
87
  getItemId(): string | null;
88
88
  getItem(): Item | undefined;
89
89
  isPhysicsItem(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminocity/lemonate-engine",
3
- "version": "26.3.12",
3
+ "version": "26.3.14",
4
4
  "productName": "Lemonate Engine",
5
5
  "repository": "https://codeberg.org/Luminocity/lemonate-engine",
6
6
  "homepage": "https://lemonate.io",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@gltf-transform/core": "^4.0.1",
45
45
  "@gltf-transform/extensions": "^4.0.1",
46
- "@luminocity/lemonate-gateway": "8.2.22",
46
+ "@luminocity/lemonate-gateway": "8.2.24",
47
47
  "@msgpack/msgpack": "3.1.1",
48
48
  "@recast-navigation/three": "^0.42.0",
49
49
  "@sparkjsdev/spark": "^0.1.10",