"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GameView_1 = require("./GameView");
var GameWrapper = (function (_super) {
    __extends(GameWrapper, _super);
    function GameWrapper() {
        var _this = _super.call(this) || this;
        engine.globalEvent.addEventListener('dxbcyj-game-start', _this.start, _this);
        var gameView = _this._gameView = new GameView_1.default();
        _this.addChild(gameView);
        return _this;
    }
    GameWrapper.prototype.start = function (event) {
        this._gameView.start(event.data.guide);
    };
    return GameWrapper;
}(engine.Container));
exports.GameWrapper = GameWrapper;
