@combos-fun/engine 0.1.20 → 0.1.21
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/agent-skill.md +2 -2
- package/dist/engine.cjs.js +1 -1
- package/dist/engine.cjs.js.map +1 -1
- package/dist/engine.cjs.prod.js +1 -1
- package/dist/engine.d.ts +1 -1
- package/dist/engine.esm.js +1 -1
- package/dist/engine.esm.js.map +1 -1
- package/package.json +2 -2
- package/plugin-authoring.md +1 -5
package/agent-skill.md
CHANGED
|
@@ -9,10 +9,10 @@ ECS microkernel. New plugins: `plugin-authoring.md`.
|
|
|
9
9
|
- Per-entity state on Components, so destroying a GameObject removes it. Cross-entity work in Systems. Remove listeners in `onDestroy`.
|
|
10
10
|
- Bootstrap only wires resources, Systems, GameObjects, and Components. Configure in the constructor; act from lifecycle or events.
|
|
11
11
|
- Custom Components set `static componentName`. Do not scan the scene for them.
|
|
12
|
-
- Use renderer plugins or a registered `Renderer` / `Renderer3D`.
|
|
12
|
+
- Use renderer plugins or a registered `Renderer` / `Renderer3D`.
|
|
13
13
|
- `game.getSystem(SystemClass)`. String form is `static systemName`, not the class name.
|
|
14
14
|
- Scene: `game.scene`.
|
|
15
15
|
- Component `game` is a getter (`gameObject?.scene?.game`), after the GameObject is in the scene. System `game` is set in `addSystem`.
|
|
16
16
|
- `componentObserver.clear()` events may omit `gameObject`.
|
|
17
|
-
- `resource.addResource`. Each `src` slot is a url string or `{ type, url }`. `preload
|
|
17
|
+
- `resource.addResource`. Each `src` slot is a url string or `{ type, url }`. `preload: true` loads during startup. Lazy `getResource` loads on first use.
|
|
18
18
|
- Inspector fields: `@Field` from `@combos-fun/inspector-decorator`. Engine `IDEProp` is legacy.
|
package/dist/engine.cjs.js
CHANGED