Skip to main content

TGameStateWithOnEnter

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[]

onEnter

  • onEnter(engine: default, ...args: unknown[]): Promise<void>
  • Parameters

    • engine: default
    • rest...args: unknown[]

    Returns Promise<void>