@forgeax/engine-ecs 0.1.26 → 0.1.27
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/README.md +94 -35
- package/dist/__tests__/world-read.unit.test.d.ts +2 -0
- package/dist/__tests__/world-read.unit.test.d.ts.map +1 -0
- package/dist/commands.d.ts +2 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/index.mjs +3471 -4263
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.ts +2 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.mjs +3 -333
- package/dist/internal.mjs.map +1 -1
- package/dist/projection/index.mjs.map +1 -1
- package/dist/shared.mjs.map +1 -1
- package/dist/world-entity-lifecycle.d.ts +3 -14
- package/dist/world-entity-lifecycle.d.ts.map +1 -1
- package/dist/world-internal.d.ts +65 -5
- package/dist/world-internal.d.ts.map +1 -1
- package/dist/world-read.d.ts +16 -0
- package/dist/world-read.d.ts.map +1 -0
- package/dist/world-read.mjs +8 -0
- package/dist/world-read.mjs.map +1 -0
- package/dist/world-scheduling.d.ts +0 -4
- package/dist/world-scheduling.d.ts.map +1 -1
- package/dist/world-storage-primitives.d.ts +26 -0
- package/dist/world-storage-primitives.d.ts.map +1 -0
- package/dist/world.d.ts +352 -157
- package/dist/world.d.ts.map +1 -1
- package/package.json +8 -4
- package/src/__tests__/command-buffer.test.ts +29 -3
- package/src/__tests__/hierarchy.unit.test.ts +3 -3
- package/src/__tests__/world-health.contract.test.ts +195 -2
- package/src/__tests__/world-read.unit.test.ts +30 -0
- package/src/commands.ts +22 -9
- package/src/internal.ts +5 -3
- package/src/world-entity-lifecycle.ts +23 -252
- package/src/world-internal-augmentation.d.ts +11 -0
- package/src/world-internal.ts +114 -63
- package/src/world-read.ts +38 -0
- package/src/world-scheduling.ts +0 -26
- package/src/world-storage-primitives.ts +179 -0
- package/src/world.ts +2590 -509
- package/dist/world-component-access.d.ts +0 -311
- package/dist/world-component-access.d.ts.map +0 -1
- package/dist/world-component-storage.d.ts +0 -298
- package/dist/world-component-storage.d.ts.map +0 -1
- package/dist/world-core.d.ts +0 -39
- package/dist/world-core.d.ts.map +0 -1
- package/src/world-component-access.ts +0 -1769
- package/src/world-component-storage.ts +0 -1264
- package/src/world-core.ts +0 -74
package/dist/world-core.d.ts
DELETED
|
@@ -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
|
package/dist/world-core.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"world-core.d.ts","sourceRoot":"","sources":["../src/world-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,UAAU,gBAAgB;IACxB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;CACrC;AAgBD;;;;GAIG;AACH,qBAAa,SAAS;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAyB;IAClD,QAAQ,CAAC,UAAU,EAAE,cAAc,CAA4B;IAC/D,QAAQ,CAAC,UAAU,EAAE,cAAc,CAA4B;IAC/D,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,EAAE,CAAM;IAChD,QAAQ,CAAC,kBAAkB,yBAAgC;IAC3D,kEAAkE;IAClE,QAAQ,CAAC,mBAAmB,iCAAwC;IACpE,aAAa,SAAK;IAClB,cAAc,SAAK;gBAEP,aAAa,EAAE,OAAO;IAOlC,IAAI,KAAK,mBAER;IAED,IAAI,OAAO,mBAEV;IAED,IAAI,WAAW,aAEd;IAED,IAAI,UAAU,eAEb;CACF"}
|