74948300-c97b-4783-9b8d-15f78d37500c.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. "use strict";
  2. cc._RF.push(module, '74948MAyXtHg5uNFfeNN1AM', 'hallModel');
  3. // Script/model/hallModel.ts
  4. "use strict";
  5. var __extends = (this && this.__extends) || (function () {
  6. var extendStatics = function (d, b) {
  7. extendStatics = Object.setPrototypeOf ||
  8. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  9. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  10. return extendStatics(d, b);
  11. };
  12. return function (d, b) {
  13. extendStatics(d, b);
  14. function __() { this.constructor = d; }
  15. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  16. };
  17. })();
  18. Object.defineProperty(exports, "__esModule", { value: true });
  19. var BaseModel_1 = require("../../lightMVC/core/base/BaseModel");
  20. var hallModel = /** @class */ (function (_super) {
  21. __extends(hallModel, _super);
  22. function hallModel() {
  23. return _super !== null && _super.apply(this, arguments) || this;
  24. }
  25. hallModel.prototype.init = function () {
  26. };
  27. hallModel.prototype.sendNotify = function (notify, data) {
  28. this.sendNoti(notify, data);
  29. };
  30. /**
  31. * 更新金币
  32. */
  33. hallModel.prototype.updateCoinNumber = function () {
  34. this.sendNoti('UPDATE_COIN', '更新金币');
  35. };
  36. hallModel.prototype.updateDiamond = function () {
  37. this.sendNoti('UPDATE_DIAMOND', '更新体力');
  38. };
  39. /**
  40. * 更新体力
  41. */
  42. hallModel.prototype.updateTiliNumber = function () {
  43. this.sendNoti('UPDATE_TILI', '更新体力');
  44. };
  45. /**
  46. * 更新体力倒计时
  47. */
  48. hallModel.prototype.updateTiliJishi = function (isShow, timeStr) {
  49. var data = { "isShow": isShow };
  50. if (timeStr)
  51. data['timeStr'] = timeStr;
  52. this.sendNoti('UPDATE_TILI_JISHI', data);
  53. };
  54. hallModel.prototype.clear = function () {
  55. };
  56. return hallModel;
  57. }(BaseModel_1.default));
  58. exports.default = hallModel;
  59. cc._RF.pop();