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
45
46
47
48
"use strict";
cc._RF.push(module, 'e7751Y7k9BDRaulW1DRSOCR', 'arena_loop_challenge_vo');
// Scripts/mod/arena/arena_loop_challenge_vo.js
 
"use strict";
 
var ArenaEvent = require("arena_loop_challenge_vo");
 
var ChallengeVo = cc.Class({
  "extends": gcore.BaseEvent,
  ctor: function ctor() {
    this.idx = 0; // 编号
 
    this.rid = 0; // 角色id
 
    this.srv_id = ""; // 角色服务器id
 
    this.name = ""; // 角色名字
 
    this.lev = 0; // 等级
 
    this.sex = 0; // 性别
 
    this.face = 0; // 头像
 
    this.power = 0; // 战力
 
    this.score = 0; // 积分
 
    this.get_score = 0; // 胜利获得积分
 
    this.status = 0; // 状态(0:未挑战 1:已挑战)        
  },
  updatetAttributeData: function updatetAttributeData(data) {
    if (!data) return;
 
    for (var attr_i in data) {
      this.setAttribute(attr_i, data[attr_i]);
    }
  },
  setAttribute: function setAttribute(key, value) {
    if (this[key] !== value) {
      this[key] = value; // this.fire(ArenaEvent.UpdateLoopChallengeListItem, key, value);
    }
  }
});
 
cc._RF.pop();