Skip to content

ecsia-monorepo / react/src / RelationsLike

Interface: RelationsLike

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

The structural slice of the relations runtime the hooks consume — satisfied by the object createRelations(world) returns. Reads only; writes go through the runtime at the point of use, exactly like component writes go through the world.

Methods

targetsOf()

ts
targetsOf(subject, relation): Iterable<EntityHandle>;

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

Parameters

ParameterType
subjectEntityHandle
relationRelationLike

Returns

Iterable<EntityHandle>


targetOf()

ts
targetOf(subject, relation): EntityHandle | null;

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

Parameters

ParameterType
subjectEntityHandle
relationRelationLike

Returns

EntityHandle | null

MIT licensed · 0.x, unpublished, experimental.