Interface: TGameStateWithOnUpdate
Defined in: core/game-state.ts:11
Extends
Properties
created
created:
boolean=false
Defined in: core/game-state.ts:56
Inherited from
TGameStateWithOnCreate.created
events
events:
TEventQueue
Defined in: core/game-state.ts:62
Event queue for the game state which will recieve all events when the state is active.
Inherited from
jobs
jobs:
TJobManager
Defined in: core/game-state.ts:64
Inherited from
postProcessing
postProcessing:
TPostProcessingStack
Defined in: core/game-state.ts:65
Inherited from
TGameStateWithOnCreate.postProcessing
world?
optionalworld?:TWorld
Defined in: core/game-state.ts:57
Inherited from
Methods
destroy()
destroy():
Promise<void>
Defined in: core/game-state.ts:195
Currently only calls destroy on the world which stops the physics worker
Returns
Promise<void>
Inherited from
getLighting()
getLighting():
TSerializedLighting
Defined in: core/game-state.ts:112
Returns
Inherited from
getRenderTasks()
getRenderTasks():
TSerializedRenderTask[]
Defined in: core/game-state.ts:108
Returns
Inherited from
onUpdate()
onUpdate(
engine,delta):Promise<void>
Defined in: core/game-state.ts:12
Parameters
engine
delta
number
Returns
Promise<void>