EntityCallbacks
Defined in: Entity.ts:41
Callback interface for notifying external systems (QueryCache, EventBus) about entity component changes. Injected by Scene.
Methods
Section titled “Methods”onComponentAdded()
Section titled “onComponentAdded()”onComponentAdded(
entity,componentClass):void
Defined in: Entity.ts:42
Parameters
Section titled “Parameters”entity
Section titled “entity”componentClass
Section titled “componentClass”Returns
Section titled “Returns”void
onComponentRemoved()
Section titled “onComponentRemoved()”onComponentRemoved(
entity,componentClass):void
Defined in: Entity.ts:43
Parameters
Section titled “Parameters”entity
Section titled “entity”componentClass
Section titled “componentClass”Returns
Section titled “Returns”void
onEntityActivated()
Section titled “onEntityActivated()”onEntityActivated(
entity):void
Defined in: Entity.ts:44
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”void
onEntityDeactivated()
Section titled “onEntityDeactivated()”onEntityDeactivated(
entity):void
Defined in: Entity.ts:45
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”void