cubeforge 0.3.11 → 0.3.12
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.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,6 +9,8 @@ var ECSWorld = class {
|
|
|
9
9
|
// Seeded RNG (LCG) for deterministic mode
|
|
10
10
|
_rngState = 0;
|
|
11
11
|
_deterministic = false;
|
|
12
|
+
/** Asset manager reference — set by Game, available in Script callbacks via world.assets */
|
|
13
|
+
assets;
|
|
12
14
|
// Primary storage: archetypes keyed by sorted type string
|
|
13
15
|
archetypes = /* @__PURE__ */ new Map();
|
|
14
16
|
// Which archetype each entity lives in
|
|
@@ -3884,6 +3886,7 @@ function Game({
|
|
|
3884
3886
|
const input = new InputManager();
|
|
3885
3887
|
const events = new EventBus();
|
|
3886
3888
|
const assets = new AssetManager();
|
|
3889
|
+
ecs.assets = assets;
|
|
3887
3890
|
const physics = new PhysicsSystem(gravity, events);
|
|
3888
3891
|
const entityIds = /* @__PURE__ */ new Map();
|
|
3889
3892
|
const renderSystem = new RenderSystem(canvas, entityIds);
|