"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 DataManager_1 = require("./../../manager/DataManager");
// import { GFun } from '../../../tc/util/GFun';
var TwLang_1 = require("../../util/TwLang");
var GameModel_1 = require("../common/GameModel");
var GFun_1 = require("../../../tc/util/GFun");
var GameEndModel = (function (_super) {
    __extends(GameEndModel, _super);
    function GameEndModel() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     * 获取积分文案
     */
    GameEndModel.prototype.getScoreTxt = function (totalStr, maxStr) {
        if (totalStr === void 0) { totalStr = TwLang_1.TwLang.lang_011; }
        if (maxStr === void 0) { maxStr = TwLang_1.TwLang.lang_010; }
        var str;
        if (DataManager_1.DataManager.ins.gameCfgData.gameInfo.openTotalScoreSwitch) {
            str = GFun_1.GFun.replace(totalStr, [DataManager_1.DataManager.ins.getInfoData.totalScore || '0']);
        }
        else {
            str = GFun_1.GFun.replace(maxStr, [DataManager_1.DataManager.ins.getInfoData.maxScore || '0']);
        }
        return str;
    };
    return GameEndModel;
}(GameModel_1.GameModel));
exports.GameEndModel = GameEndModel;
__reflect(GameEndModel.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/newGame/saolei19.03.06/db-game-template/egret/libs/tw/model/game/GameEndModel\".GameEndModel");
//# sourceMappingURL=GameEndModel.js.map