GameboardEcsAdapter
Defined in: src/interop/interop.ts:571
Adapter interface for mounting a gameboard snapshot into another ECS.
Type Parameters
Section titled “Type Parameters”TEntity
Section titled “TEntity”TEntity
Properties
Section titled “Properties”addComponent?
Section titled “addComponent?”
optionaladdComponent?: (entity,componentName,componentValue,source) =>void
Defined in: src/interop/interop.ts:575
Add a component to a host ECS entity.
Parameters
Section titled “Parameters”entity
Section titled “entity”TEntity
componentName
Section titled “componentName”string
componentValue
Section titled “componentValue”unknown
source
Section titled “source”Returns
Section titled “Returns”void
addRelation?
Section titled “addRelation?”
optionaladdRelation?: (from,to,relation) =>void
Defined in: src/interop/interop.ts:582
Add a relation between two host ECS entities.
Parameters
Section titled “Parameters”TEntity
TEntity
relation
Section titled “relation”Returns
Section titled “Returns”void
createEntity
Section titled “createEntity”createEntity: (
entity) =>TEntity
Defined in: src/interop/interop.ts:573
Create a host ECS entity from an interop entity.
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”TEntity