TEngine
Index
Constructors
constructor
Properties
publicdebugPanel
publicevents
publicgameState
publicjobs
publicoptionalmouse
publicrenderingSize
Type declaration
height: number
width: number
publicresources
publicsegmentTimer
publicstats
Methods
onMessage
Parameters
ev: MessageEvent<any>
Returns Promise<void>
publicupdateEngineContext
Parameters
data: TEngineContextData
Returns void
publicupdateGameContext
Parameters
data: TGameContextData
Returns void
Event queue for the engine which will recieve all events. Events are broadcast to the active game state queue and any workers.
Add listeners to the game state queue to ensure they are only called when the game state is active.