Skip to content

GameboardEcsAdapter

Defined in: packages/declarative-hex-worlds/src/interop/interop.ts:573

Adapter interface for mounting a gameboard snapshot into another ECS.

TEntity

optional addComponent?: (entity, componentName, componentValue, source) => void

Defined in: packages/declarative-hex-worlds/src/interop/interop.ts:577

Add a component to a host ECS entity.

TEntity

string

unknown

GameboardInteropEntity

void


optional addRelation?: (from, to, relation) => void

Defined in: packages/declarative-hex-worlds/src/interop/interop.ts:584

Add a relation between two host ECS entities.

TEntity

TEntity

GameboardEcsRelation

void


createEntity: (entity) => TEntity

Defined in: packages/declarative-hex-worlds/src/interop/interop.ts:575

Create a host ECS entity from an interop entity.

GameboardInteropEntity

TEntity