UNPKG

@robotlegsjs/phaser

Version:

RobotlegsJS integration with Phaser Scene Manager

42 lines 1.78 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.ViewMediator = void 0; var tslib_1 = require("tslib"); var core_1 = require("@robotlegsjs/core"); var AbstractMediator_1 = require("./AbstractMediator"); /** * Classic Robotlegs mediator implementation for the `Phaser.GameObjects.Container`. * * <p>Override initialize and destroy to hook into the mediator lifecycle.</p> */ var ViewMediator = /** @class */ (function (_super) { tslib_1.__extends(ViewMediator, _super); function ViewMediator() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(ViewMediator.prototype, "view", { get: function () { return this._viewComponent; }, /*============================================================================*/ /* Public Properties */ /*============================================================================*/ set: function (view) { this._viewComponent = view; }, enumerable: false, configurable: true }); ViewMediator = tslib_1.__decorate([ core_1.injectable() ], ViewMediator); return ViewMediator; }(AbstractMediator_1.AbstractMediator)); exports.ViewMediator = ViewMediator; //# sourceMappingURL=ViewMediator.js.map