"use strict"; cc._RF.push(module, '74948MAyXtHg5uNFfeNN1AM', 'hallModel'); // Script/model/hallModel.ts "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var BaseModel_1 = require("../../lightMVC/core/base/BaseModel"); var hallModel = /** @class */ (function (_super) { __extends(hallModel, _super); function hallModel() { return _super !== null && _super.apply(this, arguments) || this; } hallModel.prototype.init = function () { }; hallModel.prototype.sendNotify = function (notify, data) { this.sendNoti(notify, data); }; /** * 更新金币 */ hallModel.prototype.updateCoinNumber = function () { this.sendNoti('UPDATE_COIN', '更新金币'); }; hallModel.prototype.updateDiamond = function () { this.sendNoti('UPDATE_DIAMOND', '更新体力'); }; /** * 更新体力 */ hallModel.prototype.updateTiliNumber = function () { this.sendNoti('UPDATE_TILI', '更新体力'); }; /** * 更新体力倒计时 */ hallModel.prototype.updateTiliJishi = function (isShow, timeStr) { var data = { "isShow": isShow }; if (timeStr) data['timeStr'] = timeStr; this.sendNoti('UPDATE_TILI_JISHI', data); }; hallModel.prototype.clear = function () { }; return hallModel; }(BaseModel_1.default)); exports.default = hallModel; cc._RF.pop();