2f390a32-38e1-4404-b42d-ac5c90fa1855.js 754 B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. cc._RF.push(module, '2f390oyOOFEBLQtrFyQ+hhV', 'BaseModel');
  3. // lightMVC/core/base/BaseModel.ts
  4. "use strict";
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. var NotificationManager_1 = require("../manager/NotificationManager");
  7. /**
  8. * 数据模型基类
  9. * init和clear接口需要子类重写
  10. */
  11. var BaseModel = /** @class */ (function () {
  12. function BaseModel() {
  13. }
  14. /**
  15. * 发送消息接口
  16. * @param {string} noti 消息名称
  17. * @param {Object} data 消息数据
  18. */
  19. BaseModel.prototype.sendNoti = function (noti, data) {
  20. NotificationManager_1.default.getInstance().__sendNotification__(noti, data);
  21. };
  22. return BaseModel;
  23. }());
  24. exports.default = BaseModel;
  25. cc._RF.pop();