UNPKG

@robotlegsjs/phaser

Version:

RobotlegsJS integration with Phaser Scene Manager

59 lines 2.46 kB
"use strict"; // ------------------------------------------------------------------------------ // 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.ConfigureSceneEvent = void 0; var tslib_1 = require("tslib"); var core_1 = require("@robotlegsjs/core"); /** * Scene Configuration Event * * @private */ var ConfigureSceneEvent = /** @class */ (function (_super) { tslib_1.__extends(ConfigureSceneEvent, _super); /*============================================================================*/ /* Constructor */ /*============================================================================*/ /** * Creates a scene configuration event * * @param type The event type * @param scene The associated scene instance */ function ConfigureSceneEvent(type, scene) { var _this = _super.call(this, type, true) || this; _this._scene = scene; return _this; } Object.defineProperty(ConfigureSceneEvent.prototype, "scene", { /** * The scene instance associated with this event */ get: function () { return this._scene; }, enumerable: false, configurable: true }); /*============================================================================*/ /* Public Functions */ /*============================================================================*/ /** * @inheritDoc */ ConfigureSceneEvent.prototype.clone = function () { return new ConfigureSceneEvent(this.type, this._scene); }; /*============================================================================*/ /* Public Static Properties */ /*============================================================================*/ ConfigureSceneEvent.CONFIGURE_SCENE = "configureScene"; return ConfigureSceneEvent; }(core_1.Event)); exports.ConfigureSceneEvent = ConfigureSceneEvent; //# sourceMappingURL=ConfigureSceneEvent.js.map