Skip to main content

TGameStateWithOnLeave

Hierarchy

Index

Properties

publicoptionalactiveCamera

activeCamera?: ICamera

publiccreated

created: boolean = false

publicevents

events: default = ...

Event queue for the game state which will recieve all events when the state is active.

publicjobs

jobs: default

publicoptionalworld

world?: default

Methods

publicaddActor

  • Adds actor to the world in this game state. This is here for convience.


    Parameters

    Returns void

publicdestroy

  • destroy(): Promise<void>
  • Currently only calls destroy on the world which stops the physics worker


    Returns Promise<void>

publicgetRenderTasks

  • getRenderTasks(): TSerializedRenderTask[]
  • Returns TSerializedRenderTask[]

onLeave

  • onLeave(engine: default): Promise<void>
  • Parameters

    Returns Promise<void>