@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "ECS microkernel",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/engine.esm.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lodash-es": "^4.17.21",
|
|
44
44
|
"resource-loader": "^4.0.0-rc4",
|
|
45
45
|
"sprite-timeline": "^1.10.2",
|
|
46
|
-
"@combos-fun/inspector-decorator": "0.1.
|
|
46
|
+
"@combos-fun/inspector-decorator": "0.1.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"tsx": "^4.20.3"
|
package/plugin-authoring.md
CHANGED
|
@@ -68,7 +68,7 @@ Lifecycle (all optional):
|
|
|
68
68
|
|
|
69
69
|
Subclass `System`. Set `static systemName = 'MyFeatureSystem'`.
|
|
70
70
|
|
|
71
|
-
When the package is built with `scripts/build-package.mjs`, each `System` class in `lib/` automatically receives `static packageName` and `static packageVersion` from `package.json
|
|
71
|
+
When the package is built with `scripts/build-package.mjs`, each `System` class in `lib/` automatically receives `static packageName` and `static packageVersion` from `package.json`. Do not set them manually in source.
|
|
72
72
|
|
|
73
73
|
Decorate with `@decorators.componentObserver({ MyFeature: ['power'] })`:
|
|
74
74
|
|
|
@@ -150,10 +150,6 @@ class MyRenderer3D extends Renderer3D {
|
|
|
150
150
|
|
|
151
151
|
**Async loading pattern** (3D only): use the inherited `increaseAsyncId(id)` before async work and `validateAsyncId(id, asyncId)` after each `await` to cancel stale operations when the component is removed mid-load.
|
|
152
152
|
|
|
153
|
-
## Host `postMessage` type names
|
|
154
|
-
|
|
155
|
-
Only `@combos-fun/engine` may invent `combos-game:*` types (`plugin-init-success`, `ready`, `set-playing`, `state-changed`, `resource-progress`, `resources-ready`). Every other plugin’s iframe / parent / `window` / `game.emit` host command uses the `combos-development-tool:` prefix — including features implemented outside `plugin-development-tool` (for example mute in `plugin-sound`). Do not add `combos-sound:*`, `combos-<plugin>:*`, or a new prefix.
|
|
156
|
-
|
|
157
153
|
## `combos-plugin.json` (manifest)
|
|
158
154
|
|
|
159
155
|
Validate against `schemas/combos-plugin.schema.json`. Required fields: `name`, `pluginId`, `category`, `dimension`, `agentSkill`. For non-core packages, `category` ∈ {`rendering`, `physics`, `audio`, `input`, `ui`, `a11y`, `animation`, `devtool`, `other`} and `dimension` ∈ {`2d`, `3d`, `shared`}.
|