@robotlegsjs/phaser
Version:
RobotlegsJS integration with Phaser Scene Manager
47 lines • 1.87 kB
JavaScript
;
// ------------------------------------------------------------------------------
// Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved.
//
// NOTICE: You are permitted to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
// ------------------------------------------------------------------------------
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContextSceneManager = void 0;
/**
* The Context SceneManager represents the Phaser.Scenes.SceneManager for a Context
*/
var ContextSceneManager = /** @class */ (function () {
/*============================================================================*/
/* Constructor */
/*============================================================================*/
/**
* The SceneManager represents the root Phaser.Scenes.SceneManager for a Context
*
* @param sceneManager The root Scene Manager for this Context
*/
function ContextSceneManager(sceneManager) {
if (sceneManager !== null && sceneManager !== undefined) {
this._sceneManager = sceneManager;
}
else {
throw new Error("SceneManager can't be null or undefined");
}
}
Object.defineProperty(ContextSceneManager.prototype, "sceneManager", {
/**
* The root Phaser.Scenes.SceneManager for this Context
*/
get: function () {
return this._sceneManager;
},
enumerable: false,
configurable: true
});
/**
*
*/
ContextSceneManager.prototype.configure = function () { };
return ContextSceneManager;
}());
exports.ContextSceneManager = ContextSceneManager;
//# sourceMappingURL=ContextSceneManager.js.map