TGameState
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
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[]
Event queue for the game state which will recieve all events when the state is active.