Skip to main content

EntityHandle

@zylem/game-lib


@zylem/game-lib / runtime / EntityHandle

Interface: EntityHandle

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/core.d.ts:142

Opaque, stable identifier for a simulation entity. slot is the raw runtime slot index — treat it as an implementation detail owned by the Simulation (it is only exposed so hosts can wire behavior systems, which address the slot-indexed buffers by slot).

Properties​

id​

readonly id: number

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/core.d.ts:144

Monotonic public id, never reused within a Simulation.


slot​

readonly slot: number

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/core.d.ts:146

Raw runtime slot index. Internal — may be reused after despawn.