@esengine/ecs-framework 2.1.2 → 2.1.4
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/bin/Core.js +17 -21
- package/bin/Core.js.map +1 -1
- package/bin/ECS/Component.js +1 -5
- package/bin/ECS/Component.js.map +1 -1
- package/bin/ECS/Core/BitMaskOptimizer.js +1 -5
- package/bin/ECS/Core/BitMaskOptimizer.js.map +1 -1
- package/bin/ECS/Core/ComponentPool.js +2 -7
- package/bin/ECS/Core/ComponentPool.js.map +1 -1
- package/bin/ECS/Core/ComponentStorage.js +3 -9
- package/bin/ECS/Core/ComponentStorage.js.map +1 -1
- package/bin/ECS/Core/EventSystem.js +6 -12
- package/bin/ECS/Core/EventSystem.js.map +1 -1
- package/bin/ECS/Core/FluentAPI.js +18 -24
- package/bin/ECS/Core/FluentAPI.js.map +1 -1
- package/bin/ECS/Core/IndexUpdateBatcher.js +3 -7
- package/bin/ECS/Core/IndexUpdateBatcher.js.map +1 -1
- package/bin/ECS/Core/QuerySystem.js +16 -21
- package/bin/ECS/Core/QuerySystem.js.map +1 -1
- package/bin/ECS/CoreEvents.js +2 -5
- package/bin/ECS/CoreEvents.js.map +1 -1
- package/bin/ECS/Entity.js +12 -17
- package/bin/ECS/Entity.js.map +1 -1
- package/bin/ECS/Scene.js +17 -21
- package/bin/ECS/Scene.js.map +1 -1
- package/bin/ECS/Systems/EntitySystem.js +5 -9
- package/bin/ECS/Systems/EntitySystem.js.map +1 -1
- package/bin/ECS/Systems/IntervalSystem.js +4 -8
- package/bin/ECS/Systems/IntervalSystem.js.map +1 -1
- package/bin/ECS/Systems/PassiveSystem.js +2 -6
- package/bin/ECS/Systems/PassiveSystem.js.map +1 -1
- package/bin/ECS/Systems/ProcessingSystem.js +2 -6
- package/bin/ECS/Systems/ProcessingSystem.js.map +1 -1
- package/bin/ECS/Systems/index.js +4 -11
- package/bin/ECS/Systems/index.js.map +1 -1
- package/bin/ECS/Utils/Bits.js +1 -5
- package/bin/ECS/Utils/Bits.js.map +1 -1
- package/bin/ECS/Utils/ComponentTypeManager.js +4 -8
- package/bin/ECS/Utils/ComponentTypeManager.js.map +1 -1
- package/bin/ECS/Utils/EntityList.js +1 -5
- package/bin/ECS/Utils/EntityList.js.map +1 -1
- package/bin/ECS/Utils/EntityProcessorList.js +1 -5
- package/bin/ECS/Utils/EntityProcessorList.js.map +1 -1
- package/bin/ECS/Utils/IdentifierPool.js +1 -5
- package/bin/ECS/Utils/IdentifierPool.js.map +1 -1
- package/bin/ECS/Utils/Matcher.js +4 -8
- package/bin/ECS/Utils/Matcher.js.map +1 -1
- package/bin/ECS/Utils/index.js +6 -15
- package/bin/ECS/Utils/index.js.map +1 -1
- package/bin/Testing/Performance/component-performance.d.ts +2 -0
- package/bin/Testing/Performance/component-performance.d.ts.map +1 -0
- package/bin/Testing/Performance/component-performance.js +43 -0
- package/bin/Testing/Performance/component-performance.js.map +1 -0
- package/bin/Types/index.js +4 -7
- package/bin/Types/index.js.map +1 -1
- package/bin/Utils/Emitter.js +2 -7
- package/bin/Utils/Emitter.js.map +1 -1
- package/bin/Utils/Extensions/NumberExtension.js +1 -5
- package/bin/Utils/Extensions/NumberExtension.js.map +1 -1
- package/bin/Utils/Extensions/TypeUtils.js +1 -5
- package/bin/Utils/Extensions/TypeUtils.js.map +1 -1
- package/bin/Utils/Extensions/index.js +2 -7
- package/bin/Utils/Extensions/index.js.map +1 -1
- package/bin/Utils/GlobalManager.js +1 -5
- package/bin/Utils/GlobalManager.js.map +1 -1
- package/bin/Utils/PerformanceMonitor.js +3 -7
- package/bin/Utils/PerformanceMonitor.js.map +1 -1
- package/bin/Utils/Pool.js +3 -9
- package/bin/Utils/Pool.js.map +1 -1
- package/bin/Utils/Time.js +1 -5
- package/bin/Utils/Time.js.map +1 -1
- package/bin/Utils/Timers/ITimer.js +1 -2
- package/bin/Utils/Timers/Timer.js +3 -7
- package/bin/Utils/Timers/Timer.js.map +1 -1
- package/bin/Utils/Timers/TimerManager.js +4 -8
- package/bin/Utils/Timers/TimerManager.js.map +1 -1
- package/bin/Utils/WasmCore.js +14 -52
- package/bin/Utils/WasmCore.js.map +1 -1
- package/bin/Utils/index.d.ts +2 -1
- package/bin/Utils/index.d.ts.map +1 -1
- package/bin/Utils/index.js.map +1 -1
- package/bin/index.d.ts +3 -2
- package/bin/index.d.ts.map +1 -1
- package/bin/index.esm.d.ts +3 -2
- package/bin/index.esm.d.ts.map +1 -1
- package/bin/index.esm.js +36 -67
- package/bin/index.esm.js.map +1 -1
- package/bin/index.js.map +1 -1
- package/bin/wasm/ecs_wasm_core.d.ts +141 -0
- package/bin/wasm/ecs_wasm_core.js +415 -0
- package/bin/wasm/ecs_wasm_core_bg.wasm +0 -0
- package/bin/wasm/ecs_wasm_core_bg.wasm.d.ts +29 -0
- package/bin/wasm/package.json +15 -0
- package/package.json +16 -10
- /package/bin/{index.js → index.cjs} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_ecscore_free: (a: number, b: number) => void;
|
|
5
|
+
export const ecscore_new: () => number;
|
|
6
|
+
export const ecscore_create_entity: (a: number) => number;
|
|
7
|
+
export const ecscore_destroy_entity: (a: number, b: number) => number;
|
|
8
|
+
export const ecscore_update_entity_mask: (a: number, b: number, c: bigint) => void;
|
|
9
|
+
export const ecscore_batch_update_masks: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10
|
+
export const ecscore_query_entities: (a: number, b: bigint, c: number) => number;
|
|
11
|
+
export const ecscore_get_query_result_count: (a: number) => number;
|
|
12
|
+
export const ecscore_query_cached: (a: number, b: bigint) => number;
|
|
13
|
+
export const ecscore_get_cached_query_count: (a: number, b: bigint) => number;
|
|
14
|
+
export const ecscore_query_multiple_components: (a: number, b: number, c: number, d: number) => number;
|
|
15
|
+
export const ecscore_query_with_exclusion: (a: number, b: bigint, c: bigint, d: number) => number;
|
|
16
|
+
export const ecscore_get_entity_mask: (a: number, b: number) => bigint;
|
|
17
|
+
export const ecscore_entity_exists: (a: number, b: number) => number;
|
|
18
|
+
export const ecscore_get_entity_count: (a: number) => number;
|
|
19
|
+
export const ecscore_get_performance_stats: (a: number) => any;
|
|
20
|
+
export const ecscore_clear: (a: number) => void;
|
|
21
|
+
export const ecscore_rebuild_query_cache: (a: number) => void;
|
|
22
|
+
export const create_component_mask: (a: number, b: number) => bigint;
|
|
23
|
+
export const mask_contains_component: (a: bigint, b: number) => number;
|
|
24
|
+
export const main: () => void;
|
|
25
|
+
export const __wbindgen_exn_store: (a: number) => void;
|
|
26
|
+
export const __externref_table_alloc: () => number;
|
|
27
|
+
export const __wbindgen_export_2: WebAssembly.Table;
|
|
28
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
29
|
+
export const __wbindgen_start: () => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ecs-wasm-core",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"files": [
|
|
6
|
+
"ecs_wasm_core_bg.wasm",
|
|
7
|
+
"ecs_wasm_core.js",
|
|
8
|
+
"ecs_wasm_core.d.ts"
|
|
9
|
+
],
|
|
10
|
+
"main": "ecs_wasm_core.js",
|
|
11
|
+
"types": "ecs_wasm_core.d.ts",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./snippets/*"
|
|
14
|
+
]
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esengine/ecs-framework",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "用于Laya、Cocos等游戏引擎的高性能ECS框架",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "bin/index.js",
|
|
6
7
|
"module": "bin/index.esm.js",
|
|
7
8
|
"types": "bin/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"import": "./bin/index.esm.js",
|
|
11
|
-
"require": "./bin/index.
|
|
12
|
+
"require": "./bin/index.cjs",
|
|
12
13
|
"types": "./bin/index.d.ts"
|
|
13
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
14
16
|
},
|
|
15
17
|
"files": [
|
|
16
18
|
"bin/**/*",
|
|
17
|
-
"bin/wasm/**/*",
|
|
18
19
|
"README.md",
|
|
19
20
|
"LICENSE"
|
|
20
21
|
],
|
|
@@ -25,23 +26,24 @@
|
|
|
25
26
|
"typescript",
|
|
26
27
|
"laya",
|
|
27
28
|
"cocos",
|
|
29
|
+
"cocos-creator",
|
|
30
|
+
"esm",
|
|
28
31
|
"egret"
|
|
29
32
|
],
|
|
30
33
|
"scripts": {
|
|
31
|
-
"clean": "rimraf bin",
|
|
34
|
+
"clean": "rimraf bin bin-esm",
|
|
32
35
|
"clean:wasm": "rimraf src/wasm/rust-ecs-core/pkg src/wasm/rust-ecs-core/target",
|
|
33
|
-
"build:wasm": "cd src/wasm/rust-ecs-core && wasm-pack build --target web --out-dir ../../../bin/wasm --release",
|
|
34
|
-
"build:
|
|
36
|
+
"build:wasm": "cd src/wasm/rust-ecs-core && wasm-pack build --target web --out-dir ../../../bin/wasm --release && cd ../../../ && node -e \"try{require('fs').unlinkSync('bin/wasm/.gitignore')}catch(e){}\"",
|
|
37
|
+
"build:cjs": "tsc",
|
|
35
38
|
"build:esm": "tsc --project tsconfig.esm.json",
|
|
39
|
+
"build:rename": "node -e \"require('fs').renameSync('bin/index.js', 'bin/index.cjs')\"",
|
|
36
40
|
"prebuild": "npm run clean",
|
|
37
|
-
"build": "npm run build:wasm && npm run build:
|
|
41
|
+
"build": "npm run build:wasm && npm run build:cjs && npm run build:esm && npm run build:rename",
|
|
38
42
|
"build:watch": "tsc --watch",
|
|
39
43
|
"rebuild": "npm run clean && npm run clean:wasm && npm run build",
|
|
40
44
|
"test:benchmark": "npm run build && node bin/Testing/Performance/benchmark.js",
|
|
41
45
|
"test:unit": "npm run build && node bin/Testing/test-runner.js",
|
|
42
46
|
"benchmark": "node scripts/benchmark.js",
|
|
43
|
-
"preversion": "npm run rebuild",
|
|
44
|
-
"postversion": "npm publish",
|
|
45
47
|
"publish:patch": "npm version patch",
|
|
46
48
|
"publish:minor": "npm version minor",
|
|
47
49
|
"publish:major": "npm version major",
|
|
@@ -62,5 +64,9 @@
|
|
|
62
64
|
"type": "git",
|
|
63
65
|
"url": "https://github.com/esengine/ecs-framework.git"
|
|
64
66
|
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=14.0.0"
|
|
69
|
+
},
|
|
70
|
+
"sideEffects": false,
|
|
65
71
|
"optionalDependencies": {}
|
|
66
72
|
}
|
|
File without changes
|