@robotlegsjs/phaser
Version:
RobotlegsJS integration with Phaser Scene Manager
62 lines • 2.74 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.SceneRegistryEvent = void 0;
var tslib_1 = require("tslib");
var core_1 = require("@robotlegsjs/core");
/**
* SceneManager existence event
*
* @private
*/
var SceneRegistryEvent = /** @class */ (function (_super) {
tslib_1.__extends(SceneRegistryEvent, _super);
/*============================================================================*/
/* Constructor */
/*============================================================================*/
/**
* Creates a new sceneManager existence event
*
* @param type The event type
* @param sceneManager The sceneManager associated with this event
*/
function SceneRegistryEvent(type, sceneManager) {
var _this = _super.call(this, type) || this;
_this._sceneManager = sceneManager;
return _this;
}
Object.defineProperty(SceneRegistryEvent.prototype, "sceneManager", {
/**
* The sceneManager associated with this event
*/
get: function () {
return this._sceneManager;
},
enumerable: false,
configurable: true
});
/*============================================================================*/
/* Public Functions */
/*============================================================================*/
/**
* @inheritDoc
*/
SceneRegistryEvent.prototype.clone = function () {
return new SceneRegistryEvent(this.type, this._sceneManager);
};
/*============================================================================*/
/* Public Static Properties */
/*============================================================================*/
SceneRegistryEvent.SCENE_MANAGER_ADD = "sceneManagerAdd";
SceneRegistryEvent.SCENE_MANAGER_REMOVE = "sceneManagerRemove";
SceneRegistryEvent.ROOT_SCENE_MANAGER_ADD = "rootSceneManagerAdd";
SceneRegistryEvent.ROOT_SCENE_MANAGER_REMOVE = "rootSceneManagerRemove";
return SceneRegistryEvent;
}(core_1.Event));
exports.SceneRegistryEvent = SceneRegistryEvent;
//# sourceMappingURL=SceneRegistryEvent.js.map