Skip to main content

Interface: TGameStateWithOnLeave

Defined in: core/game-state.ts:39

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​

TGameState.events


jobs​

jobs: TJobManager

Defined in: core/game-state.ts:64

Inherited from​

TGameState.jobs


postProcessing​

postProcessing: TPostProcessingStack

Defined in: core/game-state.ts:65

Inherited from​

TGameStateWithOnCreate.postProcessing


world?​

optional world?: TWorld

Defined in: core/game-state.ts:57

Inherited from​

TGameState.world

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​

TGameState.destroy


getLighting()​

getLighting(): TSerializedLighting

Defined in: core/game-state.ts:112

Returns​

TSerializedLighting

Inherited from​

TGameState.getLighting


getRenderTasks()​

getRenderTasks(): TSerializedRenderTask[]

Defined in: core/game-state.ts:108

Returns​

TSerializedRenderTask[]

Inherited from​

TGameState.getRenderTasks


onLeave()​

onLeave(engine): Promise<void>

Defined in: core/game-state.ts:40

Parameters​

engine​

TEngine

Returns​

Promise<void>