Files
fc/dev/project/library/imports/66/66bd2430-f42a-422e-858b-d3461de77346.js
T
2026-05-24 10:21:26 +08:00

38 lines
1.0 KiB
JavaScript

"use strict";
cc._RF.push(module, '66bd2Qw9CpCLoWL00Yd53NG', 'heaven_customs_vo');
// Scripts/mod/pve/heaven/heaven_customs_vo.js
"use strict";
////////////////////////////////////////////
// @Author : htp
// @Editor : htp
// @Date : 2019-04-12 16:32:03
// @description :
// 天界副本 关卡数据
////////////////////////////////-
var BridgeClass = require("bridge.class");
var HeavenEvent = require('heaven_event');
var HeavenCustomsVo = cc.Class({
"extends": BridgeClass,
ctor: function ctor() {
this.chapter_id = 0; // 章节id
this.id = 0; // 关卡id
this.state = 0; // 是否可挑战(0不可挑战 1可挑战 2已通关)
this.star = 0; // 通关星数
this.star_info = {}; // 三星点亮状态
},
updateData: function updateData(data) {
for (var key in data) {
var value = data[key];
this[key] = value;
}
this.dispatchUpdateAttrByKey();
},
dispatchUpdateAttrByKey: function dispatchUpdateAttrByKey() {
gcore.GlobalEvent.fire(HeavenEvent.Update_Customs_Vo_Event);
}
});
cc._RF.pop();