@combos-fun/engine 0.1.3 → 0.1.4-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@combos-fun/engine",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-beta.1",
4
4
  "description": "ECS microkernel",
5
5
  "main": "index.js",
6
6
  "module": "dist/engine.esm.js",
@@ -45,7 +45,7 @@
45
45
  "lodash-es": "^4.17.21",
46
46
  "resource-loader": "^4.0.0-rc4",
47
47
  "sprite-timeline": "^1.10.2",
48
- "@combos-fun/inspector-decorator": "0.1.3"
48
+ "@combos-fun/inspector-decorator": "0.1.4-beta.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsx": "^4.20.3"
@@ -23,7 +23,7 @@ Open only when the short `agent-skill` card is insufficient for a named symbol o
23
23
  | `frameRate` | `number` | `60` | |
24
24
  | `autoStart` | `boolean` | `true` | |
25
25
  | `needScene` | `boolean` | `true` | Auto-creates `Scene('scene')` |
26
- | `onSystemsBootstrapComplete` | `(game, error?) => void` | — | After all systems init |
26
+ | `onSystemsBootstrapComplete` | `(game, error?) => void \| Promise<void>` | — | After systems init + `loadScene`; add scene objects here. Then observers flush, `beforeReady`, optional `start`, then `ready`. |
27
27
  | `pluginInitNotifyTargetOrigin` | `string` | `'*'` | Outbound postMessage target (init / ready / state) |
28
28
  | `allowedMessageOrigins` | `string[]` | defaults | Inbound origins allowed to send `set-playing` (merged with defaults; `['*']` = any) |
29
29
 
@@ -50,7 +50,7 @@ Core `Game` speaks a `postMessage` protocol with the embedding page so a host AP
50
50
 
51
51
  | Type | When | Payload |
52
52
  | ---- | ---- | ------- |
53
- | `combos-game:ready` | Bootstrap finished (systems `init`/`awake`, optional scene load & start). Sent once even with `autoStart:false`. | `{ engineVersion, error? }` |
53
+ | `combos-game:ready` | Bootstrap finished (systems `init`/`awake`, scene populate, `beforeReady` such as first i18n, optional `start`). Sent once even with `autoStart:false`. | `{ engineVersion, error? }` |
54
54
  | `combos-game:state-changed` | After `start` / `pause` / `resume` | `{ playing, started }` |
55
55
 
56
56
  **Inbound (parent → iframe):**