"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("../../manager/DataManager");
var GameStartModel = (function (_super) {
    __extends(GameStartModel, _super);
    function GameStartModel() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(GameStartModel.prototype, "countTxt", {
        /**
         * 剩余次数
         * 为了按钮字体的美观，不展示开始游戏之外的文案，非常规状态由业务文案代替展示。
         */
        get: function () {
            var txt;
            if (DataManager_1.DataManager.ins.getInfoData.status.code != 0) {
                txt = DataManager_1.DataManager.ins.getInfoData.status.btnText;
            }
            else {
                txt = DataManager_1.DataManager.ins.getInfoData.status.text;
            }
            return txt;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(GameStartModel.prototype, "startBtnEnable", {
        /**
         * 开始游戏按钮状态
         */
        get: function () {
            var enable;
            if (DataManager_1.DataManager.ins.getInfoData.status.btnDisable || DataManager_1.DataManager.ins.getInfoData.status.code == 6) {
                enable = false;
            }
            else {
                enable = true;
            }
            return enable;
        },
        enumerable: true,
        configurable: true
    });
    return GameStartModel;
}(GameModel_1.GameModel));
exports.GameStartModel = GameStartModel;
__reflect(GameStartModel.prototype, "\"/Users/haiyoucuv/Documents/Web/\u5DE5\u884C\u5361\u4E2D\u5FC3--\u6B22\u8DA3\u5E84\u56ED\u6D3B\u52A8/JoyousManor/egret/libs/tw/model/game/GameStartModel\".GameStartModel");
//# sourceMappingURL=GameStartModel.js.map