@combos-fun/engine 0.0.37 → 0.0.39

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.0.37",
3
+ "version": "0.0.39",
4
4
  "description": "ECS microkernel",
5
5
  "main": "index.js",
6
6
  "module": "dist/engine.esm.js",
@@ -41,13 +41,17 @@
41
41
  ],
42
42
  "author": "sun668 <q947692259@gmail.com>",
43
43
  "dependencies": {
44
- "@combos-fun/inspector-decorator": "0.0.37",
44
+ "@combos-fun/inspector-decorator": "0.0.39",
45
45
  "eventemitter3": "^5.0.4",
46
46
  "lodash-es": "^4.17.21",
47
47
  "resource-loader": "^4.0.0-rc4",
48
48
  "sprite-timeline": "^1.10.2"
49
49
  },
50
+ "devDependencies": {
51
+ "tsx": "^4.20.3"
52
+ },
50
53
  "scripts": {
51
- "build": "node ../../scripts/build-package.mjs"
54
+ "build": "node ../../scripts/build-package.mjs",
55
+ "test": "node --import tsx --test test/normalizeResourceSrc.test.ts test/normalizeSpritesheetData.test.ts"
52
56
  }
53
57
  }
@@ -55,8 +55,6 @@ resource.loadConfig([
55
55
  ]);
56
56
  ```
57
57
 
58
- `ResourceBase` requires both `type: RESOURCE_TYPE` and a nested `src` object keyed by media slot (`image` / `json` / `audio` / `video` / `tex` / `ske` / …) where each slot is `{ type, url }`. A flat `src: 'logo.png'` is invalid.
59
-
60
58
  ## Minimal 3D bootstrap
61
59
 
62
60
  ```ts
@@ -6,7 +6,7 @@ Open only when the short `agent-skill` card is insufficient for a named symbol o
6
6
 
7
7
  ### Values
8
8
 
9
- `Game`, `Scene`, `GameObject`, `Component`, `System`, `Transform`, `resource`, `resourceLoader`, `decorators`, `IDEProp`, `componentObserver`, `LOAD_EVENT`, `RESOURCE_TYPE`, `OBSERVER_TYPE`, `LOAD_SCENE_MODE`, `RESOURCE_TYPE_STRATEGY`, `version`, `COMBOS_GAME_PLUGIN_INIT_SUCCESS`, `COMBOS_GAME_READY`, `COMBOS_GAME_SET_PLAYING`, `COMBOS_GAME_STATE_CHANGED`, `postParentPluginInitSuccess`, `postParentGameReady`, `postParentGameState`, `parseSetPlayingMessage`, `DEFAULT_ALLOWED_MESSAGE_HOST_SUFFIXES`, `isAllowedMessageOrigin`, `mergeAllowedMessageOrigins`.
9
+ `Game`, `Scene`, `GameObject`, `Component`, `System`, `Transform`, `resource`, `resourceLoader`, `decorators`, `IDEProp`, `componentObserver`, `LOAD_EVENT`, `RESOURCE_TYPE`, `OBSERVER_TYPE`, `LOAD_SCENE_MODE`, `RESOURCE_TYPE_STRATEGY`, `normalizeResourceSrc`, `normalizeSpritesheetData`, `version`, `COMBOS_GAME_PLUGIN_INIT_SUCCESS`, `COMBOS_GAME_READY`, `COMBOS_GAME_SET_PLAYING`, `COMBOS_GAME_STATE_CHANGED`, `postParentPluginInitSuccess`, `postParentGameReady`, `postParentGameState`, `parseSetPlayingMessage`, `DEFAULT_ALLOWED_MESSAGE_HOST_SUFFIXES`, `isAllowedMessageOrigin`, `mergeAllowedMessageOrigins`.
10
10
 
11
11
  ### Types
12
12