TGameStateWithOnUpdate
Hierarchy
- default
- TGameStateWithOnUpdate
Index
Properties
publicoptionalactiveCamera
publiccreated
publicevents
publicjobs
publicoptionalworld
Methods
publicaddActor
Adds actor to the world in this game state. This is here for convience.
Parameters
actor: default
Returns void
publicdestroy
Currently only calls destroy on the world which stops the physics worker
Returns Promise<void>
publicgetLighting
Returns TSerializedLighting
publicgetRenderTasks
Returns TSerializedRenderTask[]
onUpdate
Parameters
engine: default
delta: number
Returns Promise<void>
Event queue for the game state which will recieve all events when the state is active.