Skip to content

ecsia-monorepo / react/src / EntityRefLike

Interface: EntityRefLike

Defined in: react/src/world.ts:28

The pooled-ref accessor surface the binding exposes: typed read/write plus the bound handle. Satisfied by both core's EntityRef and the umbrella's public EntityRef view. The pooling contract still applies — resolve at the point of use, never store the returned object.

Properties

handle

ts
readonly handle: EntityHandle;

Defined in: react/src/world.ts:29

Methods

read()

ts
read<C>(def): ReadOf<C>;

Defined in: react/src/world.ts:30

Type Parameters

Type Parameter
C extends ComponentDef<Readonly<Record<string, FieldToken>>, string>

Parameters

ParameterType
defC

Returns

ReadOf<C>


write()

ts
write<C>(def): WriteOf<C>;

Defined in: react/src/world.ts:31

Type Parameters

Type Parameter
C extends ComponentDef<Readonly<Record<string, FieldToken>>, string>

Parameters

ParameterType
defC

Returns

WriteOf<C>

MIT licensed · 0.x, unpublished, experimental.