"use strict"; cc._RF.push(module, '59fdeUm7a1Fmqwexp+tBhG2', 'WelFare'); // Script/Framework/UserData/WelFare.ts "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WelFare = void 0; var App_1 = require("../../Manager/App"); /** 福利 */ var WelFare = /** @class */ (function () { function WelFare() { this.initData(); } Object.defineProperty(WelFare.prototype, "fuliDay", { get: function () { return this._fuliDay; }, set: function (value) { this._fuliDay = value; this.updateLocalStorate(); }, enumerable: false, configurable: true }); Object.defineProperty(WelFare.prototype, "fuliWatch", { get: function () { return this._fuliWatch; }, set: function (value) { this._fuliWatch = value; this.updateLocalStorate(); }, enumerable: false, configurable: true }); WelFare.prototype.initData = function () { var dailyTask = App_1.App.LocalStorageUtil.getJsonObj(App_1.App.LocalStorageUtil.lst_welfare); if (dailyTask) { this.fuliDay = dailyTask._fuliDay; this.fuliWatch = dailyTask._fuliWatch; } else { this.fuliDay = App_1.App.ConfigMgr.getFuLiDayList(); this.fuliWatch = App_1.App.ConfigMgr.getFuLiWatchList(); } }; WelFare.prototype.updateLocalStorate = function () { App_1.App.LocalStorageUtil.setJsonObj(App_1.App.LocalStorageUtil.lst_welfare, this); console.log("设置福利数据:", this); }; return WelFare; }()); exports.WelFare = WelFare; cc._RF.pop();