"use strict"; cc._RF.push(module, '74aa6ID6ihN7Kmc4GwS5K06', 'elfin_hatch_vo'); // Scripts/mod/partner/wings/elfin_hatch_vo.js "use strict"; /* @Author : htp @Editor : htp @Date : 2019-08-14 16:30:39 @description : 精靈孵化器數據結構 */ var BridgeClass = require("bridge.class"); var ElfinConst = require("elfin_const"); var ElfinEvent = require("elfin_event"); var ElfinHatchVo = cc.Class({ "extends": BridgeClass, ctor: function ctor() { this.id = 0; // 孵化器id this.state = ElfinConst.Hatch_Status.Open; // 孵化器狀態 this.is_open = 0; // 激活狀態(0未激活 1已激活 2待激活) this.lev = 0; // 等級 this.do_id = 0; // 靈蛋id this.need_point = 0; // 本次孵化所需總孵化點 this.do_point = 0; // 已經孵化的孵化點 this.all_end_time = 0; // 當前孵化點孵化結束的時間戳 this.sort = 0; // 排序 }, updateData: function updateData(data) { for (var key in data) { this[key] = data[key]; } this.dispatchUpdateAttrByKey(); }, dispatchUpdateAttrByKey: function dispatchUpdateAttrByKey() { gcore.GlobalEvent.fire(ElfinEvent.Update_Elfin_Hatch_Vo_Event, this.id); } }); cc._RF.pop();