@forgeax/engine-ecs 0.1.26 → 0.1.28

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.
Files changed (50) hide show
  1. package/README.md +94 -35
  2. package/dist/__tests__/world-read.unit.test.d.ts +2 -0
  3. package/dist/__tests__/world-read.unit.test.d.ts.map +1 -0
  4. package/dist/commands.d.ts +2 -0
  5. package/dist/commands.d.ts.map +1 -1
  6. package/dist/index.mjs +3471 -4263
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/internal.d.ts +2 -3
  9. package/dist/internal.d.ts.map +1 -1
  10. package/dist/internal.mjs +3 -333
  11. package/dist/internal.mjs.map +1 -1
  12. package/dist/projection/index.mjs.map +1 -1
  13. package/dist/shared.mjs.map +1 -1
  14. package/dist/world-entity-lifecycle.d.ts +3 -14
  15. package/dist/world-entity-lifecycle.d.ts.map +1 -1
  16. package/dist/world-internal.d.ts +65 -5
  17. package/dist/world-internal.d.ts.map +1 -1
  18. package/dist/world-read.d.ts +16 -0
  19. package/dist/world-read.d.ts.map +1 -0
  20. package/dist/world-read.mjs +8 -0
  21. package/dist/world-read.mjs.map +1 -0
  22. package/dist/world-scheduling.d.ts +0 -4
  23. package/dist/world-scheduling.d.ts.map +1 -1
  24. package/dist/world-storage-primitives.d.ts +26 -0
  25. package/dist/world-storage-primitives.d.ts.map +1 -0
  26. package/dist/world.d.ts +352 -157
  27. package/dist/world.d.ts.map +1 -1
  28. package/package.json +8 -4
  29. package/src/__tests__/command-buffer.test.ts +29 -3
  30. package/src/__tests__/hierarchy.unit.test.ts +3 -3
  31. package/src/__tests__/world-health.contract.test.ts +195 -2
  32. package/src/__tests__/world-read.unit.test.ts +30 -0
  33. package/src/commands.ts +22 -9
  34. package/src/internal.ts +5 -3
  35. package/src/world-entity-lifecycle.ts +23 -252
  36. package/src/world-internal-augmentation.d.ts +11 -0
  37. package/src/world-internal.ts +114 -63
  38. package/src/world-read.ts +38 -0
  39. package/src/world-scheduling.ts +0 -26
  40. package/src/world-storage-primitives.ts +179 -0
  41. package/src/world.ts +2590 -509
  42. package/dist/world-component-access.d.ts +0 -311
  43. package/dist/world-component-access.d.ts.map +0 -1
  44. package/dist/world-component-storage.d.ts +0 -298
  45. package/dist/world-component-storage.d.ts.map +0 -1
  46. package/dist/world-core.d.ts +0 -39
  47. package/dist/world-core.d.ts.map +0 -1
  48. package/src/world-component-access.ts +0 -1769
  49. package/src/world-component-storage.ts +0 -1264
  50. package/src/world-core.ts +0 -74
@@ -1,39 +0,0 @@
1
- import { BufferPool } from './buffer-pool';
2
- import type { RelationshipIndex } from './relationship-index';
3
- import type { SharedRefStore } from './shared-ref-store';
4
- import { type ArchetypeGraph } from './storage/archetype-graph';
5
- import { StructuralEvidenceRing } from './storage/structural-evidence';
6
- import type { UniqueRefStore } from './unique-ref-store';
7
- import type { EntityRecord } from './world';
8
- interface WorldStorageCore {
9
- readonly graph: ArchetypeGraph;
10
- readonly records: EntityRecord[];
11
- readonly freeIndices: number[];
12
- readonly bufferPool: BufferPool;
13
- readonly uniqueRefs: UniqueRefStore;
14
- readonly sharedRefs: SharedRefStore;
15
- }
16
- /**
17
- * Package-private state authority for World. A World is the public facade;
18
- * this object is the only owner of archetype storage, entity records, managed
19
- * stores, epochs, and bounded change evidence.
20
- */
21
- export declare class WorldCore {
22
- readonly identity: string;
23
- readonly uniqueRefs: UniqueRefStore;
24
- readonly sharedRefs: SharedRefStore;
25
- readonly storage: WorldStorageCore;
26
- readonly componentMutationEpochs: number[];
27
- readonly structuralEvidence: StructuralEvidenceRing;
28
- /** One packed reverse index per relationship source component. */
29
- readonly relationshipIndexes: Map<number, RelationshipIndex>;
30
- mutationEpoch: number;
31
- structureEpoch: number;
32
- constructor(sharedStorage: boolean);
33
- get graph(): ArchetypeGraph;
34
- get records(): EntityRecord[];
35
- get freeIndices(): number[];
36
- get bufferPool(): BufferPool;
37
- }
38
- export {};
39
- //# sourceMappingURL=world-core.d.ts.map
@@ -1 +0,0 @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