@skewedaspect/sage 0.10.0-rc.1 → 0.10.0-rc.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GameSimulationManager, GameEntityRegistry, GameSimulationOptions, StateBag, ValidEntityRegistry } from '@skewedaspect/sage-core';
|
|
1
|
+
import { GameSimulationManager, GameEntityRegistry, GameSimulationOptions, GameSimulationSnapshot, StateBag, ValidEntityRegistry } from '@skewedaspect/sage-core';
|
|
2
2
|
import { AbstractMesh, Camera, Ray, Scene } from '@babylonjs/core';
|
|
3
3
|
import { EntityPickFilter, EntityPickResult } from "./entityPicking.js";
|
|
4
4
|
import { NodeEntity } from "./nodeEntity.js";
|
|
@@ -37,5 +37,6 @@ export declare class NodeSimulation<Registry extends NodeEntityRegistry = NodeEn
|
|
|
37
37
|
pickEntityForward(camera: Camera, range: number, filter?: EntityPickFilter): EntityPickResult | undefined;
|
|
38
38
|
getEntityForMesh(mesh: AbstractMesh): NodeEntity | undefined;
|
|
39
39
|
spawnByName(name: string, state?: StateBag, id?: string): NodeEntity;
|
|
40
|
+
buildFromSnapshot(snapshot: GameSimulationSnapshot): NodeSimulation<Registry>;
|
|
40
41
|
protected buildReplacementSimulation(options: GameSimulationOptions<Registry>): NodeSimulation<Registry>;
|
|
41
42
|
}
|
package/dist/sage.es.js
CHANGED
|
@@ -68,7 +68,7 @@ var Be = class {
|
|
|
68
68
|
configurable: !0
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
}, M = "0.10.0-rc.
|
|
71
|
+
}, M = "0.10.0-rc.2", Ve = class e {
|
|
72
72
|
canvas;
|
|
73
73
|
renderEngine;
|
|
74
74
|
managers;
|
|
@@ -486,6 +486,9 @@ var H = class e extends De {
|
|
|
486
486
|
spawnByName(e, t, n) {
|
|
487
487
|
return super.spawnByName(e, t, n);
|
|
488
488
|
}
|
|
489
|
+
buildFromSnapshot(e) {
|
|
490
|
+
return super.buildFromSnapshot(e);
|
|
491
|
+
}
|
|
489
492
|
buildReplacementSimulation(t) {
|
|
490
493
|
return new e({
|
|
491
494
|
...t,
|