@oasys/oecs 0.4.0 → 0.5.0
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/CHANGELOG.md +553 -0
- package/README.md +42 -31
- package/dist/core/ecs/access_check.d.cts +77 -0
- package/dist/core/ecs/access_check.d.ts +8 -8
- package/dist/core/ecs/access_check.d.ts.map +1 -1
- package/dist/core/ecs/archetype.d.cts +486 -0
- package/dist/core/ecs/archetype.d.ts +23 -11
- package/dist/core/ecs/archetype.d.ts.map +1 -1
- package/dist/core/ecs/archetype_graph.d.cts +96 -0
- package/dist/core/ecs/archetype_graph.d.ts +96 -0
- package/dist/core/ecs/archetype_graph.d.ts.map +1 -0
- package/dist/core/ecs/builtin_relations.d.cts +43 -0
- package/dist/core/ecs/builtin_relations.d.ts +8 -8
- package/dist/core/ecs/builtin_relations.d.ts.map +1 -1
- package/dist/core/ecs/command_log.d.cts +116 -0
- package/dist/core/ecs/command_log.d.ts +13 -10
- package/dist/core/ecs/command_log.d.ts.map +1 -1
- package/dist/core/ecs/component.d.cts +176 -0
- package/dist/core/ecs/component.d.ts +75 -5
- package/dist/core/ecs/component.d.ts.map +1 -1
- package/dist/core/ecs/compute_backend.d.cts +37 -0
- package/dist/core/ecs/compute_backend.d.ts +2 -2
- package/dist/core/ecs/debug_names.d.cts +7 -0
- package/dist/core/ecs/debug_names.d.ts +7 -0
- package/dist/core/ecs/debug_names.d.ts.map +1 -0
- package/dist/core/ecs/deferred_commands.d.cts +55 -0
- package/dist/core/ecs/deferred_commands.d.ts +55 -0
- package/dist/core/ecs/deferred_commands.d.ts.map +1 -0
- package/dist/core/ecs/dispatch_trace.d.cts +93 -0
- package/dist/core/ecs/dispatch_trace.d.ts +3 -3
- package/dist/core/ecs/ecs.d.cts +562 -0
- package/dist/core/ecs/ecs.d.ts +314 -285
- package/dist/core/ecs/ecs.d.ts.map +1 -1
- package/dist/core/ecs/ecs_memory.d.cts +179 -0
- package/dist/core/ecs/ecs_memory.d.ts +1 -1
- package/dist/core/ecs/entity.d.cts +34 -0
- package/dist/core/ecs/entity.d.ts +7 -1
- package/dist/core/ecs/entity.d.ts.map +1 -1
- package/dist/core/ecs/entity_allocator.d.cts +59 -0
- package/dist/core/ecs/entity_allocator.d.ts +59 -0
- package/dist/core/ecs/entity_allocator.d.ts.map +1 -0
- package/dist/core/ecs/event.d.cts +79 -0
- package/dist/core/ecs/event.d.ts +36 -11
- package/dist/core/ecs/event.d.ts.map +1 -1
- package/dist/core/ecs/event_registry.d.cts +22 -0
- package/dist/core/ecs/event_registry.d.ts +22 -0
- package/dist/core/ecs/event_registry.d.ts.map +1 -0
- package/dist/core/ecs/facades.d.cts +158 -0
- package/dist/core/ecs/facades.d.ts +158 -0
- package/dist/core/ecs/facades.d.ts.map +1 -0
- package/dist/core/ecs/frame_stepper.d.cts +58 -0
- package/dist/core/ecs/frame_stepper.d.ts +58 -0
- package/dist/core/ecs/frame_stepper.d.ts.map +1 -0
- package/dist/core/ecs/frame_trace.d.cts +133 -0
- package/dist/core/ecs/frame_trace.d.ts +5 -5
- package/dist/core/ecs/frame_trace.d.ts.map +1 -1
- package/dist/core/ecs/host_commands.d.cts +274 -0
- package/dist/core/ecs/host_commands.d.ts +53 -31
- package/dist/core/ecs/host_commands.d.ts.map +1 -1
- package/dist/core/ecs/index.d.cts +46 -0
- package/dist/core/ecs/index.d.ts +45 -40
- package/dist/core/ecs/index.d.ts.map +1 -1
- package/dist/core/ecs/observer.d.cts +173 -0
- package/dist/core/ecs/observer.d.ts +43 -12
- package/dist/core/ecs/observer.d.ts.map +1 -1
- package/dist/core/ecs/query.d.cts +718 -0
- package/dist/core/ecs/query.d.ts +251 -90
- package/dist/core/ecs/query.d.ts.map +1 -1
- package/dist/core/ecs/ref.d.cts +31 -0
- package/dist/core/ecs/ref.d.ts +3 -3
- package/dist/core/ecs/relation.d.cts +243 -0
- package/dist/core/ecs/relation.d.ts +26 -14
- package/dist/core/ecs/relation.d.ts.map +1 -1
- package/dist/core/ecs/relation_service.d.cts +235 -0
- package/dist/core/ecs/relation_service.d.ts +235 -0
- package/dist/core/ecs/relation_service.d.ts.map +1 -0
- package/dist/core/ecs/resource.d.cts +53 -0
- package/dist/core/ecs/resource.d.ts +25 -5
- package/dist/core/ecs/resource.d.ts.map +1 -1
- package/dist/core/ecs/resource_registry.d.cts +20 -0
- package/dist/core/ecs/resource_registry.d.ts +20 -0
- package/dist/core/ecs/resource_registry.d.ts.map +1 -0
- package/dist/core/ecs/resume.d.cts +85 -0
- package/dist/core/ecs/resume.d.ts +6 -6
- package/dist/core/ecs/resume.d.ts.map +1 -1
- package/dist/core/ecs/run_condition.d.cts +81 -0
- package/dist/core/ecs/run_condition.d.ts +15 -9
- package/dist/core/ecs/run_condition.d.ts.map +1 -1
- package/dist/core/ecs/schedule.d.cts +142 -0
- package/dist/core/ecs/schedule.d.ts +15 -6
- package/dist/core/ecs/schedule.d.ts.map +1 -1
- package/dist/core/ecs/snapshot_service.d.cts +94 -0
- package/dist/core/ecs/snapshot_service.d.ts +94 -0
- package/dist/core/ecs/snapshot_service.d.ts.map +1 -0
- package/dist/core/ecs/sparse_store.d.cts +110 -0
- package/dist/core/ecs/sparse_store.d.ts +5 -2
- package/dist/core/ecs/sparse_store.d.ts.map +1 -1
- package/dist/core/ecs/store.d.cts +950 -0
- package/dist/core/ecs/store.d.ts +143 -342
- package/dist/core/ecs/store.d.ts.map +1 -1
- package/dist/core/ecs/store_layout_listener.d.cts +23 -0
- package/dist/core/ecs/system.d.cts +250 -0
- package/dist/core/ecs/system.d.ts +138 -22
- package/dist/core/ecs/system.d.ts.map +1 -1
- package/dist/{utils/arrays.d.ts → core/ecs/utils/arrays.d.cts} +1 -0
- package/dist/core/ecs/utils/error.d.cts +61 -0
- package/dist/core/ecs/utils/error.d.ts +12 -2
- package/dist/core/ecs/utils/error.d.ts.map +1 -1
- package/dist/core/store/action_ring.d.cts +136 -0
- package/dist/core/store/allocator.d.cts +238 -0
- package/dist/core/store/allocator.d.ts.map +1 -1
- package/dist/core/store/buffer_backed_column.d.cts +69 -0
- package/dist/core/store/buffer_backed_column.d.ts +2 -2
- package/dist/core/store/column_store.d.cts +273 -0
- package/dist/core/store/column_store.d.ts +18 -10
- package/dist/core/store/column_store.d.ts.map +1 -1
- package/dist/core/store/command_dispatch.d.cts +52 -0
- package/dist/core/store/command_ring.d.cts +107 -0
- package/dist/core/store/descriptor.d.cts +80 -0
- package/dist/core/store/descriptor.d.ts +1 -1
- package/dist/core/store/descriptor.d.ts.map +1 -1
- package/dist/core/store/entity_index.d.cts +108 -0
- package/dist/core/store/event_ring.d.cts +95 -0
- package/dist/core/store/extend.d.cts +39 -0
- package/dist/core/store/extend.d.ts +3 -73
- package/dist/core/store/extend.d.ts.map +1 -1
- package/dist/core/store/grow.d.cts +34 -0
- package/dist/core/store/grow.d.ts +4 -9
- package/dist/core/store/grow.d.ts.map +1 -1
- package/dist/core/store/header.d.cts +64 -0
- package/dist/core/store/header.d.ts +1 -1
- package/dist/core/store/header.d.ts.map +1 -1
- package/dist/core/store/index.d.cts +17 -0
- package/dist/core/store/index.d.ts +16 -15
- package/dist/core/store/index.d.ts.map +1 -1
- package/dist/core/store/layout_ops.d.cts +152 -0
- package/dist/core/store/layout_ops.d.ts +152 -0
- package/dist/core/store/layout_ops.d.ts.map +1 -0
- package/dist/core/store/region_table.d.cts +74 -0
- package/dist/core/store/region_table.d.ts +1 -1
- package/dist/core/store/region_table.d.ts.map +1 -1
- package/dist/core/store/snapshot.d.cts +43 -0
- package/dist/core/store/snapshot.d.ts +2 -2
- package/dist/core/store/state_hash.d.cts +38 -0
- package/dist/core/store/state_hash.d.ts +1 -1
- package/dist/core/store/store_regions.d.cts +38 -0
- package/dist/core/store/store_regions.d.ts +1 -1
- package/dist/core/store/vendored_abi/abi.d.ts +43 -0
- package/dist/core/store/{__generated__ → vendored_abi}/abi.d.ts.map +1 -1
- package/dist/dev_flag.d.cts +17 -0
- package/dist/dev_flag.d.ts +17 -0
- package/dist/dev_flag.d.ts.map +1 -0
- package/dist/extensions/editor/editor.d.cts +170 -0
- package/dist/extensions/editor/editor.d.ts +43 -22
- package/dist/extensions/editor/editor.d.ts.map +1 -1
- package/dist/extensions/editor/field_handle.d.cts +40 -0
- package/dist/extensions/editor/field_handle.d.ts +8 -3
- package/dist/extensions/editor/field_handle.d.ts.map +1 -1
- package/dist/extensions/editor/index.cjs +1 -1
- package/dist/extensions/editor/index.d.cts +21 -0
- package/dist/extensions/editor/index.d.ts +2 -2
- package/dist/extensions/editor/index.js +116 -88
- package/dist/extensions/reactive/ecs_sync.d.cts +214 -0
- package/dist/extensions/reactive/ecs_sync.d.ts +26 -22
- package/dist/extensions/reactive/ecs_sync.d.ts.map +1 -1
- package/dist/extensions/reactive/index.cjs +1 -1
- package/dist/extensions/reactive/index.d.cts +23 -0
- package/dist/extensions/reactive/index.d.ts +1 -1
- package/dist/extensions/reactive/index.js +106 -116
- package/dist/extensions/solid/index.cjs +1 -1
- package/dist/extensions/solid/index.d.cts +6 -0
- package/dist/extensions/solid/index.d.ts +2 -2
- package/dist/extensions/solid/index.js +8 -4
- package/dist/extensions/solid/kernel_solid.d.cts +45 -0
- package/dist/extensions/solid/kernel_solid.d.ts +6 -3
- package/dist/extensions/solid/kernel_solid.d.ts.map +1 -1
- package/dist/host_commands-BF8QMi3c.cjs +1 -0
- package/dist/host_commands-i4cAeyL5.js +2318 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +66 -0
- package/dist/index.d.ts +50 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4469 -5933
- package/dist/internal.cjs +2 -0
- package/dist/internal.d.cts +20 -0
- package/dist/internal.d.ts +20 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +141 -0
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.cts +18 -0
- package/dist/primitives.d.ts +6 -6
- package/dist/primitives.js +24 -23
- package/dist/reactive/array.d.ts +24 -0
- package/dist/reactive/array.d.ts.map +1 -0
- package/dist/reactive/index.cjs +1 -0
- package/dist/reactive/index.d.cts +11 -0
- package/dist/reactive/index.d.ts +11 -0
- package/dist/reactive/index.d.ts.map +1 -0
- package/dist/reactive/index.js +18 -0
- package/dist/reactive/interop.d.cts +19 -0
- package/dist/{core/reactive → reactive}/interop.d.ts +1 -1
- package/dist/reactive/interop.d.ts.map +1 -0
- package/dist/reactive/kernel.d.cts +73 -0
- package/dist/{core/reactive → reactive}/kernel.d.ts +5 -3
- package/dist/reactive/kernel.d.ts.map +1 -0
- package/dist/reactive/map.d.ts +16 -0
- package/dist/reactive/map.d.ts.map +1 -0
- package/dist/reactive/shallow.d.cts +11 -0
- package/dist/reactive/shallow.d.ts +11 -0
- package/dist/reactive/shallow.d.ts.map +1 -0
- package/dist/reactive/struct.d.cts +10 -0
- package/dist/{core/reactive → reactive}/struct.d.ts +1 -1
- package/dist/reactive/struct.d.ts.map +1 -0
- package/dist/shallow-DQ8aG51_.cjs +1 -0
- package/dist/shallow-DfnAm9vG.js +150 -0
- package/dist/shared-BU1Cd40h.js +103 -0
- package/dist/shared-BymrGTyR.cjs +1 -0
- package/dist/shared.cjs +1 -1
- package/dist/shared.d.cts +22 -0
- package/dist/shared.d.ts +2 -2
- package/dist/shared.js +1 -1
- package/dist/topological_sort-BDvEyb9W.cjs +1 -0
- package/dist/topological_sort-DK6EjpWa.js +135 -0
- package/dist/type_primitives/assertions.d.cts +32 -0
- package/dist/type_primitives/assertions.d.ts +13 -1
- package/dist/type_primitives/assertions.d.ts.map +1 -1
- package/dist/type_primitives/binary_heap/binary_heap.d.cts +37 -0
- package/dist/type_primitives/bitset/bitset.d.cts +54 -0
- package/dist/type_primitives/brand.d.cts +23 -0
- package/dist/type_primitives/error.d.cts +16 -0
- package/dist/type_primitives/error.d.ts +4 -3
- package/dist/type_primitives/error.d.ts.map +1 -1
- package/dist/type_primitives/index.d.cts +13 -0
- package/dist/type_primitives/index.d.ts +9 -9
- package/dist/type_primitives/sparse_map/sparse_map.d.cts +30 -0
- package/dist/type_primitives/sparse_set/sparse_set.d.cts +28 -0
- package/dist/type_primitives/topological_sort/topological_sort.d.cts +29 -0
- package/dist/type_primitives/typed_arrays/typed_arrays.d.cts +127 -0
- package/dist/typed_arrays-BcXcnzB4.js +258 -0
- package/dist/typed_arrays-D3NmwtCG.cjs +1 -0
- package/dist/utils/error.d.cts +6 -0
- package/dist/version.d.cts +10 -0
- package/dist/version.d.ts +10 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +102 -19
- package/dist/array-CxbPyiHO.cjs +0 -1
- package/dist/array-uFR7Q8fU.js +0 -132
- package/dist/core/reactive/array.d.ts.map +0 -1
- package/dist/core/reactive/index.cjs +0 -1
- package/dist/core/reactive/index.d.ts +0 -10
- package/dist/core/reactive/index.d.ts.map +0 -1
- package/dist/core/reactive/index.js +0 -17
- package/dist/core/reactive/interop.d.ts.map +0 -1
- package/dist/core/reactive/kernel.d.ts.map +0 -1
- package/dist/core/reactive/map.d.ts.map +0 -1
- package/dist/core/reactive/struct.d.ts.map +0 -1
- package/dist/log/console_sink.d.ts +0 -4
- package/dist/log/console_sink.d.ts.map +0 -1
- package/dist/log/index.d.ts +0 -3
- package/dist/log/index.d.ts.map +0 -1
- package/dist/log/logger.d.ts +0 -27
- package/dist/log/logger.d.ts.map +0 -1
- package/dist/shared-BXSZnxx4.cjs +0 -1
- package/dist/shared-C678TAPY.js +0 -99
- package/dist/topological_sort-DlRpSrxu.js +0 -391
- package/dist/topological_sort-WAT-VHb-.cjs +0 -1
- package/dist/utils/arrays.d.ts.map +0 -1
- package/dist/utils/constants.d.ts.map +0 -1
- /package/dist/{utils/constants.d.ts → core/ecs/utils/constants.d.cts} +0 -0
- /package/dist/core/store/{__generated__/abi.d.ts → vendored_abi/abi.d.cts} +0 -0
- /package/dist/{core/reactive/array.d.ts → reactive/array.d.cts} +0 -0
- /package/dist/{core/reactive/map.d.ts → reactive/map.d.cts} +0 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # oecs — archetype Entity Component System for TypeScript
|
|
3
|
+
*
|
|
4
|
+
* Re-derived from the oasys engine ECS. A determinism-capable archetype ECS
|
|
5
|
+
* with a topo-sorted scheduler, system sets + run conditions, per-component
|
|
6
|
+
* observers, relations (with wildcards), sparse storage, templates, and a
|
|
7
|
+
* typed host→ECS write seam.
|
|
8
|
+
*
|
|
9
|
+
* Storage runs over a backing-neutral column store (`ColumnStore`). The default
|
|
10
|
+
* profile is **pure-TS heap** — a plain resizable `ArrayBuffer`, so no
|
|
11
|
+
* `SharedArrayBuffer` and no cross-origin isolation (COOP/COEP) are required.
|
|
12
|
+
* The opt-in `SharedArrayBuffer` + WASM profile lives at `@oasys/oecs/shared`.
|
|
13
|
+
*
|
|
14
|
+
* This entry is the **stable public API**: every name below is an explicit
|
|
15
|
+
* semver commitment (additions to the internal barrel do not auto-publish).
|
|
16
|
+
* Codecs, ABI constants, memory inspectors, and dev singletons live at
|
|
17
|
+
* `@oasys/oecs/internal`, which carries no semver guarantees.
|
|
18
|
+
*
|
|
19
|
+
* @module oecs
|
|
20
|
+
*/
|
|
21
|
+
export { ECS, type ECSOptions } from './core/ecs/index.cjs';
|
|
22
|
+
export type { ECSRelations, ECSEvents, ECSResources, ECSSnapshots } from './core/ecs/index.cjs';
|
|
23
|
+
export type { ECSMemoryOptions, EntityBudget, WasmMemoryArm } from './core/ecs/index.cjs';
|
|
24
|
+
export type { Template, TemplateEntry, TemplateEntries, TemplateOverrides } from './core/ecs/index.cjs';
|
|
25
|
+
export type { StoreLayoutListener } from './core/ecs/index.cjs';
|
|
26
|
+
export type { ComputeBackend, BackendSystemHandle } from './core/ecs/index.cjs';
|
|
27
|
+
export { SCHEDULE, type SystemEntry, type SystemOrdering, type SystemOrderingTarget, systemSet, type SystemSet, type SystemSetConfig } from './core/ecs/index.cjs';
|
|
28
|
+
export { type RunCondition, type ConditionContext, runIfResourceEq, runEveryNTicks, runIfAnyMatch, not, allOf, anyOf } from './core/ecs/index.cjs';
|
|
29
|
+
export { SystemContext } from './core/ecs/index.cjs';
|
|
30
|
+
export type { SystemFn, SystemConfig, SystemDescriptor, SystemAccessConfig, SystemAccessDeclaration, SystemTransition } from './core/ecs/index.cjs';
|
|
31
|
+
export type { SystemAccess, DeclaredAccess, TypedSystemConfig, DeclaredRead, DeclaredWrite, DeclaredAdd, DeclaredRemove, DeclaredSparseRead, DeclaredSparseWrite, DeclaredRelationRead, DeclaredRelationWrite, DeclaredResourceRead, DeclaredResourceWrite, DespawnArg, DeclaredBundleOrDef, DenseAccessDecl, SpawnsAccessDecl, DespawnsAccessDecl, TransitionsAccessDecl, SparseAccessDecl, RelationsAccessDecl, ResourcesAccessDecl } from './core/ecs/index.cjs';
|
|
32
|
+
export type { ObserverConfig, ObserverHandle, ObserverFn, ArchetypeObserverFn, StructuralObserverConfig, EntitySetObserverConfig, ArchetypeSetObserverConfig } from './core/ecs/index.cjs';
|
|
33
|
+
export { installHostCommandSeam, uninstallHostCommandSeam, applyHostCommand, HostCommandQueue, spawnEntry } from './core/ecs/index.cjs';
|
|
34
|
+
export type { HostCommand, SpawnEntry, SpawnEntryFor, SpawnEntries, HostCommandSeamOptions, HostCommandSink } from './core/ecs/index.cjs';
|
|
35
|
+
export { HostCommandRecorder, serializeCommandLog, deserializeCommandLog, replayCommandLog } from './core/ecs/index.cjs';
|
|
36
|
+
export type { CommandLog, RecordedTick, ReplayResult, ReplayOptions } from './core/ecs/index.cjs';
|
|
37
|
+
export { FrameTraceRecorder } from './core/ecs/index.cjs';
|
|
38
|
+
export type { FrameTraceSink, FrameTrace, FrameTraceEvent, StructuralOp, ObserverOp } from './core/ecs/index.cjs';
|
|
39
|
+
export { FrameStepper } from './core/ecs/index.cjs';
|
|
40
|
+
export type { FrameStepperOptions } from './core/ecs/index.cjs';
|
|
41
|
+
export { ECSRestoreError, ECS_SNAPSHOT_VERSION } from './core/ecs/index.cjs';
|
|
42
|
+
export { StoreRestoreError } from './core/store/index.cjs';
|
|
43
|
+
export type { ComponentRef, ReadonlyComponentRef } from './core/ecs/index.cjs';
|
|
44
|
+
export { Query, QueryBuilder, ChangedQuery, HIERARCHY_UNBOUNDED } from './core/ecs/index.cjs';
|
|
45
|
+
export type { HierarchyTerm } from './core/ecs/index.cjs';
|
|
46
|
+
export { ChunkColumns, Commands } from './core/ecs/index.cjs';
|
|
47
|
+
export type { ArchetypeView, ArchetypeID } from './core/ecs/index.cjs';
|
|
48
|
+
export type { EntityID, ReadonlyEntityIdArray } from './core/ecs/index.cjs';
|
|
49
|
+
export { getEntityIndex } from './core/ecs/index.cjs';
|
|
50
|
+
export type { TypedArrayTag } from './type_primitives/index.cjs';
|
|
51
|
+
export type { ComponentDef, ComponentHandle, ComponentRegisterOptions, ComponentSchema, SchemaOf, DeclaredQueryTerm, FieldValues, CompleteFieldValues, ValuesArg, AttachValuesArg, TagToTypedArray, ColumnsForSchema, MutableColumnsForSchema, ReadonlyColumn, ReadonlyUint32Array } from './core/ecs/index.cjs';
|
|
52
|
+
export { bundle } from './core/ecs/index.cjs';
|
|
53
|
+
export type { Bundle, BundleOrDef } from './core/ecs/index.cjs';
|
|
54
|
+
export type { SparseComponentDef, SparseComponentID, SparseSchemaOf } from './core/ecs/index.cjs';
|
|
55
|
+
export { SparseRestoreError } from './core/ecs/index.cjs';
|
|
56
|
+
export type { RelationDef, RelationID, RelationCardinality, RelationOptions, OnDeleteTarget } from './core/ecs/index.cjs';
|
|
57
|
+
export { ANY_RELATION } from './core/ecs/index.cjs';
|
|
58
|
+
export { registerIsA, registerChildOf, type BuiltinRelationOptions } from './core/ecs/index.cjs';
|
|
59
|
+
export type { EventReader, EventKey, EventSchema, EventShape, EventFieldsCover, EmptyEventSchema, SignalKey } from './core/ecs/index.cjs';
|
|
60
|
+
export { eventKey, signalKey } from './core/ecs/index.cjs';
|
|
61
|
+
export type { ResourceKey, ResourceValueOf } from './core/ecs/index.cjs';
|
|
62
|
+
export { resourceKey } from './core/ecs/index.cjs';
|
|
63
|
+
export { ECSError, ECS_ERROR, isEcsError } from './core/ecs/index.cjs';
|
|
64
|
+
export { SabUnavailableError } from './core/store/index.cjs';
|
|
65
|
+
export { VERSION } from './version.cjs';
|
|
66
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,56 @@
|
|
|
11
11
|
* `SharedArrayBuffer` and no cross-origin isolation (COOP/COEP) are required.
|
|
12
12
|
* The opt-in `SharedArrayBuffer` + WASM profile lives at `@oasys/oecs/shared`.
|
|
13
13
|
*
|
|
14
|
+
* This entry is the **stable public API**: every name below is an explicit
|
|
15
|
+
* semver commitment (additions to the internal barrel do not auto-publish).
|
|
16
|
+
* Codecs, ABI constants, memory inspectors, and dev singletons live at
|
|
17
|
+
* `@oasys/oecs/internal`, which carries no semver guarantees.
|
|
18
|
+
*
|
|
14
19
|
* @module oecs
|
|
15
20
|
*/
|
|
16
|
-
export
|
|
21
|
+
export { ECS, type ECSOptions } from './core/ecs/index.js';
|
|
22
|
+
export type { ECSRelations, ECSEvents, ECSResources, ECSSnapshots } from './core/ecs/index.js';
|
|
23
|
+
export type { ECSMemoryOptions, EntityBudget, WasmMemoryArm } from './core/ecs/index.js';
|
|
24
|
+
export type { Template, TemplateEntry, TemplateEntries, TemplateOverrides } from './core/ecs/index.js';
|
|
25
|
+
export type { StoreLayoutListener } from './core/ecs/index.js';
|
|
26
|
+
export type { ComputeBackend, BackendSystemHandle } from './core/ecs/index.js';
|
|
27
|
+
export { SCHEDULE, type SystemEntry, type SystemOrdering, type SystemOrderingTarget, systemSet, type SystemSet, type SystemSetConfig } from './core/ecs/index.js';
|
|
28
|
+
export { type RunCondition, type ConditionContext, runIfResourceEq, runEveryNTicks, runIfAnyMatch, not, allOf, anyOf } from './core/ecs/index.js';
|
|
29
|
+
export { SystemContext } from './core/ecs/index.js';
|
|
30
|
+
export type { SystemFn, SystemConfig, SystemDescriptor, SystemAccessConfig, SystemAccessDeclaration, SystemTransition } from './core/ecs/index.js';
|
|
31
|
+
export type { SystemAccess, DeclaredAccess, TypedSystemConfig, DeclaredRead, DeclaredWrite, DeclaredAdd, DeclaredRemove, DeclaredSparseRead, DeclaredSparseWrite, DeclaredRelationRead, DeclaredRelationWrite, DeclaredResourceRead, DeclaredResourceWrite, DespawnArg, DeclaredBundleOrDef, DenseAccessDecl, SpawnsAccessDecl, DespawnsAccessDecl, TransitionsAccessDecl, SparseAccessDecl, RelationsAccessDecl, ResourcesAccessDecl } from './core/ecs/index.js';
|
|
32
|
+
export type { ObserverConfig, ObserverHandle, ObserverFn, ArchetypeObserverFn, StructuralObserverConfig, EntitySetObserverConfig, ArchetypeSetObserverConfig } from './core/ecs/index.js';
|
|
33
|
+
export { installHostCommandSeam, uninstallHostCommandSeam, applyHostCommand, HostCommandQueue, spawnEntry } from './core/ecs/index.js';
|
|
34
|
+
export type { HostCommand, SpawnEntry, SpawnEntryFor, SpawnEntries, HostCommandSeamOptions, HostCommandSink } from './core/ecs/index.js';
|
|
35
|
+
export { HostCommandRecorder, serializeCommandLog, deserializeCommandLog, replayCommandLog } from './core/ecs/index.js';
|
|
36
|
+
export type { CommandLog, RecordedTick, ReplayResult, ReplayOptions } from './core/ecs/index.js';
|
|
37
|
+
export { FrameTraceRecorder } from './core/ecs/index.js';
|
|
38
|
+
export type { FrameTraceSink, FrameTrace, FrameTraceEvent, StructuralOp, ObserverOp } from './core/ecs/index.js';
|
|
39
|
+
export { FrameStepper } from './core/ecs/index.js';
|
|
40
|
+
export type { FrameStepperOptions } from './core/ecs/index.js';
|
|
41
|
+
export { ECSRestoreError, ECS_SNAPSHOT_VERSION } from './core/ecs/index.js';
|
|
42
|
+
export { StoreRestoreError } from './core/store/index.js';
|
|
43
|
+
export type { ComponentRef, ReadonlyComponentRef } from './core/ecs/index.js';
|
|
44
|
+
export { Query, QueryBuilder, ChangedQuery, HIERARCHY_UNBOUNDED } from './core/ecs/index.js';
|
|
45
|
+
export type { HierarchyTerm } from './core/ecs/index.js';
|
|
46
|
+
export { ChunkColumns, Commands } from './core/ecs/index.js';
|
|
47
|
+
export type { ArchetypeView, ArchetypeID } from './core/ecs/index.js';
|
|
48
|
+
export type { EntityID, ReadonlyEntityIdArray } from './core/ecs/index.js';
|
|
49
|
+
export { getEntityIndex } from './core/ecs/index.js';
|
|
50
|
+
export type { TypedArrayTag } from './type_primitives/index.js';
|
|
51
|
+
export type { ComponentDef, ComponentHandle, ComponentRegisterOptions, ComponentSchema, SchemaOf, DeclaredQueryTerm, FieldValues, CompleteFieldValues, ValuesArg, AttachValuesArg, TagToTypedArray, ColumnsForSchema, MutableColumnsForSchema, ReadonlyColumn, ReadonlyUint32Array } from './core/ecs/index.js';
|
|
52
|
+
export { bundle } from './core/ecs/index.js';
|
|
53
|
+
export type { Bundle, BundleOrDef } from './core/ecs/index.js';
|
|
54
|
+
export type { SparseComponentDef, SparseComponentID, SparseSchemaOf } from './core/ecs/index.js';
|
|
55
|
+
export { SparseRestoreError } from './core/ecs/index.js';
|
|
56
|
+
export type { RelationDef, RelationID, RelationCardinality, RelationOptions, OnDeleteTarget } from './core/ecs/index.js';
|
|
57
|
+
export { ANY_RELATION } from './core/ecs/index.js';
|
|
58
|
+
export { registerIsA, registerChildOf, type BuiltinRelationOptions } from './core/ecs/index.js';
|
|
59
|
+
export type { EventReader, EventKey, EventSchema, EventShape, EventFieldsCover, EmptyEventSchema, SignalKey } from './core/ecs/index.js';
|
|
60
|
+
export { eventKey, signalKey } from './core/ecs/index.js';
|
|
61
|
+
export type { ResourceKey, ResourceValueOf } from './core/ecs/index.js';
|
|
62
|
+
export { resourceKey } from './core/ecs/index.js';
|
|
63
|
+
export { ECSError, ECS_ERROR, isEcsError } from './core/ecs/index.js';
|
|
64
|
+
export { SabUnavailableError } from './core/store/index.js';
|
|
65
|
+
export { VERSION } from './version.js';
|
|
17
66
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAKtF,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhF,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI9F,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAItD,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtE,OAAO,EACN,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,SAAS,EACT,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,eAAe,EACf,cAAc,EACd,aAAa,EACb,GAAG,EACH,KAAK,EACL,KAAK,EACL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EACX,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,YAAY,CAAC;AAKpB,YAAY,EACX,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAo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