Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / types

types

Type Aliases

Type AliasDescription
EntityIdNumeric identifier for an entity. Entities are pure ids — all data lives in components attached to the entity.
EcsEntityKindBuilt-in entity kinds recognized by the ECS factory registry. Each kind maps to an object factory in core/factories/objects/* that creates the baseline component set.
EcsEntityEditorKindEcsEntityKind extended with editor-only utility entities (gizmos, helpers).
SelectionListenerCallback invoked when the selected entity changes. null indicates a deselection.
TextInput-
FloatInput-
ColorInput-
Vector2Input-
Vector3Input-
SliderInput-
DropdownOption-
DropdownInput-
CheckboxInput-
ToggleInput-
AssetInput-
ComponentInput-
WorldEntityViewLightweight, read-only view of an entity returned by World.getEntityById. Contains the entity id and its current component list at the moment of the lookup. Re-query each frame rather than caching across ticks.
ParentLookupResult of a parent lookup. parent is null for entities at the root or for entities without a ParentId component.
Vec3Loose 3D vector accepted by raycast and other spatial helpers. Either a live THREE.Vector3 or a plain { x, y, z } object — both are normalized internally before use.
IntersectionResultSingle hit returned by World.raycast / World.raycastFrom. Pairs the standard THREE.Intersection (threeResult) with the owning entity id (when the hit traces back to a registered ECS entity). entityId is null if the hit object is not part of any tracked entity (e.g. an editor helper).