@0xobelisk/ecs 1.2.0-pre.100
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/LICENSE +92 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2413 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2353 -0
- package/dist/index.mjs.map +1 -0
- package/dist/query.d.ts +164 -0
- package/dist/subscription.d.ts +123 -0
- package/dist/types.d.ts +142 -0
- package/dist/utils.d.ts +103 -0
- package/dist/world.d.ts +306 -0
- package/package.json +99 -0
- package/src/index.ts +60 -0
- package/src/query.ts +839 -0
- package/src/subscription.ts +848 -0
- package/src/types.ts +209 -0
- package/src/utils.ts +309 -0
- package/src/world.ts +1282 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// ECS type definitions
|
|
2
|
+
export type {
|
|
3
|
+
EntityId,
|
|
4
|
+
ComponentType,
|
|
5
|
+
Unsubscribe,
|
|
6
|
+
ComponentCallback,
|
|
7
|
+
ComponentChangeCallback,
|
|
8
|
+
EntityCallback,
|
|
9
|
+
QueryChange,
|
|
10
|
+
QueryChangeCallback,
|
|
11
|
+
QueryWatcher,
|
|
12
|
+
PagedResult,
|
|
13
|
+
PagedQueryResult,
|
|
14
|
+
BatchQueryResult,
|
|
15
|
+
ComponentChangeEvent,
|
|
16
|
+
EntityChangeEvent,
|
|
17
|
+
QueryOptions,
|
|
18
|
+
SubscriptionOptions,
|
|
19
|
+
ComponentMetadata,
|
|
20
|
+
ComponentField,
|
|
21
|
+
ComponentDiscoveryResult,
|
|
22
|
+
ResourceMetadata,
|
|
23
|
+
ResourceDiscoveryResult,
|
|
24
|
+
ECSWorldConfig,
|
|
25
|
+
DubheMetadata
|
|
26
|
+
} from './types';
|
|
27
|
+
|
|
28
|
+
// Main class exports
|
|
29
|
+
export { DubheECSWorld } from './world';
|
|
30
|
+
export { ComponentDiscoverer, ResourceDiscoverer } from './world';
|
|
31
|
+
export { ECSQuery } from './query';
|
|
32
|
+
export { ECSSubscription } from './subscription';
|
|
33
|
+
|
|
34
|
+
// Factory function exports
|
|
35
|
+
export { createECSWorld } from './world';
|
|
36
|
+
|
|
37
|
+
// Utility function exports
|
|
38
|
+
export {
|
|
39
|
+
extractEntityIds,
|
|
40
|
+
extractPagedQueryResult,
|
|
41
|
+
calculateDelta,
|
|
42
|
+
findEntityIntersection,
|
|
43
|
+
findEntityUnion,
|
|
44
|
+
extractIntersectionFromBatchResult,
|
|
45
|
+
extractUnionFromBatchResult,
|
|
46
|
+
debounce,
|
|
47
|
+
normalizeComponentType,
|
|
48
|
+
createCacheKey,
|
|
49
|
+
isValidEntityId,
|
|
50
|
+
isValidComponentType,
|
|
51
|
+
deepEqual,
|
|
52
|
+
safeJsonParse,
|
|
53
|
+
formatError,
|
|
54
|
+
createTimestamp,
|
|
55
|
+
limitArray,
|
|
56
|
+
paginateArray
|
|
57
|
+
} from './utils';
|
|
58
|
+
|
|
59
|
+
// Default export main class
|
|
60
|
+
export { DubheECSWorld as default } from './world';
|