UNPKG

toybox-engine

Version:
35 lines (34 loc) 1.17 kB
import * as Math from "./toybox-math"; import * as Engine from "./toybox-engine"; import * as Draw from "./toybox-draw"; export class Runner { Game:Engine.Game; DrawEngine:Draw.DrawEngine; static Current:Runner; static Resolution:Math.Vertex; constructor(Game:Engine.Game, EngineType:Draw.DrawEngineType) PickSceneObject(Position:any) : Engine.SceneObject SwitchScene(SceneName:string) : void PreloadScene(SceneName:string) : void SetResolution(Resolution:Math.Vertex, FixedSize?:boolean) Run() : void Stop() : void EngineInit(EngineType:Draw.DrawEngineType, Resolution?:Math.Vertex) : void AttachEvents() : void UpdateScene() : void OnRenderFrame() : void PackEventArgs(event) : any OnClosing(event) : void OnKeyPress(event) : void OnKeyDown(event) : void OnKeyUp(event) : void OnMouseDown(event) : void OnMouseUp(event) : void OnMouseWheel(event) : void OnMouseMove(event) : void OnMouseRight(event) : void OnResize(event) : void CheckObjectMouseEvents(EventNames:string[], event) : boolean TouchscreenDevice() : boolean }