Skip to content

@modoki/engine / index / registerEntity

Function: registerEntity() ​

registerEntity(entity, world?): void

Register an entity in the given world's index. Called after world.spawn().

Parameters ​

entity ​

any

world? ​

World = ...

Returns ​

void

Built with Modoki.