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
| Parameter | Type |
|---|---|
subject | EntityHandle |
relation | RelationLike |
Returns
Iterable<EntityHandle>
targetOf()
ts
targetOf(subject, relation): EntityHandle | null;Defined in: react/src/world.ts:68
Parameters
| Parameter | Type |
|---|---|
subject | EntityHandle |
relation | RelationLike |
Returns
EntityHandle | null