difenduandada
2024-12-31 34abe6963b344c882358274957f4b992456fee40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"use strict";
cc._RF.push(module, '63c72QukVdJ2JcVdrkL0iNh', 'guildwar_position_vo');
// Scripts/mod/guildwar/guildwar_position_vo.js
 
"use strict";
 
/*-----------------------------------------------------+
 * 联盟战据点数据
 * @author zys
 +-----------------------------------------------------*/
var GuildwarConst = require("guildwar_const");
 
var GuildwarEvent = require("guildwar_event");
 
var VoyageOrderVo = cc.Class({
  "extends": gcore.BaseEvent,
  ctor: function ctor() {
    this.pos = 0; // 序列号(唯一标识)
 
    this.rid = 0;
    this.srv_id = 0;
    this.name = "";
    this.lev = 0;
    this.face = 0;
    this.power = 0;
    this.hp = 0;
    this.hp_max = 0;
    this.relic_def_count = 0; // 废墟状态被进攻次数
 
    this.status = GuildwarConst.position_status.normal;
  },
  updateData: function updateData(data) {
    for (var key in data) {
      var value = data[key];
      this[key] = value;
    }
 
    this.fire(GuildwarEvent.UpdateGuildWarPositionDataEvent);
  },
  _delete: function _delete() {}
});
module.exports = VoyageOrderVo;
 
cc._RF.pop();