新增 _graphicsDeviceChangeTimer 用于凝聚GraphicsDeviceReset事件

This commit is contained in:
yhh
2020-11-26 10:39:32 +08:00
parent 918d998f4c
commit 1bb1b8704b
6 changed files with 110 additions and 65 deletions

View File

@@ -39,15 +39,18 @@ declare module es {
declare module es {
class Core {
static emitter: Emitter<CoreEvents>;
static pauseOnFocusLost: boolean;
static debugRenderEndabled: boolean;
static _instance: Core;
static entitySystemsEnabled: boolean;
_nextScene: Scene;
_sceneTransition: SceneTransition;
_graphicsDeviceChangeTimer: ITimer;
_globalManagers: GlobalManager[];
_timerManager: TimerManager;
width: number;
height: number;
constructor(width: number, height: number);
constructor(width: number, height: number, enableEntitySystems?: boolean);
static readonly Instance: Core;
_frameCounterElapsedTime: number;
_frameCounter: number;