"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 TwLang_1 = require("../../util/TwLang");
var GFun_1 = require("../../../tc/util/GFun");
// import { IGameOptionData } from '../../data/game/getOptions/IGameOptionData';
var GameOptionModel = (function (_super) {
    __extends(GameOptionModel, _super);
    function GameOptionModel() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     * 活动结束时间
     */
    GameOptionModel.prototype.getEndTimeTxt = function (endTimeTxt, openPrizeTimeTxt) {
        if (endTimeTxt === void 0) { endTimeTxt = TwLang_1.TwLang.lang_012; }
        if (openPrizeTimeTxt === void 0) { openPrizeTimeTxt = TwLang_1.TwLang.lang_013; }
        var str;
        str = GFun_1.GFun.replace(endTimeTxt, [DataManager_1.DataManager.ins.gameCfgData.gameInfo.offDate]);
        if (DataManager_1.DataManager.ins.gameCfgData.gameInfo.rankPrize) {
            str += "\n" + openPrizeTimeTxt;
        }
        return str;
    };
    Object.defineProperty(GameOptionModel.prototype, "optionList", {
        /**
         * 奖品列表
         */
        get: function () {
            return DataManager_1.DataManager.ins.getOptionsData.optionList;
        },
        enumerable: true,
        configurable: true
    });
    return GameOptionModel;
}(GameModel_1.GameModel));
exports.GameOptionModel = GameOptionModel;
__reflect(GameOptionModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameOptionModel\".GameOptionModel");
//# sourceMappingURL=GameOptionModel.js.map