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, '23a0d1gU5hLdImWhGT624MV', 'voyage_order_vo');
// Scripts/mod/voyage/voyage_order_vo.js
 
"use strict";
 
/*-----------------------------------------------------+
 * 远航订单数据
 * @author zys
 +-----------------------------------------------------*/
var VoyageConst = require("voyage_const");
 
var VoyageOrderVo = cc.Class({
  "extends": gcore.BaseEvent,
  ctor: function ctor() {
    this.order_id = 0; // 订单唯一id
 
    this.order_bid = 0; // 订单bid
 
    this.status = VoyageConst.Order_Status.Finish; // 订单状态
 
    this.end_time = 0; // 订单结束时间(接取后生效)
 
    this.assign_ids = {}; // 订单派遣的英雄id列表
 
    this.config = {}; // 订单配置表数据
 
    this.old_status = 0;
  },
  updateData: function updateData(data) {
    this.old_status = this.status;
 
    for (var key in data) {
      var value = data[key];
      this[key] = value;
 
      if (key == "order_bid") {
        this.config = Config.shipping_data.data_order[value] || {};
      }
    }
 
    this.fire(require("voyage_event").UpdateOrderDataEvent);
  },
  _delete: function _delete() {}
});
module.exports = VoyageOrderVo;
 
cc._RF.pop();