Files
fc/dev/project/library/imports/28/28775b9b-2a72-436f-b977-19278e08a921.js
T

76 lines
2.2 KiB
JavaScript
Raw Normal View History

2026-05-24 10:21:26 +08:00
"use strict";
cc._RF.push(module, '28775ubKnJDb7l3GSeOCKkh', 'stone_dungeon_model');
// Scripts/mod/pve/dungeon/stone_dungeon_model.js
"use strict";
// --------------------------------------------------------------------
// @author: xxx@syg.com(必填, 创建模块的人员)
// @description:
// 这里填写详细说明,主要填写该模块的功能简要
// <br/>Create: 2019-01-08 11:59:10
// --------------------------------------------------------------------
var BridgeClass = require("bridge.class");
var Stone_dungeonModel = cc.Class({
"extends": BridgeClass,
ctor: function ctor() {
this.change_count = {};
this.passClearanceId = {};
},
properties: {},
initConfig: function initConfig() {},
// 通关的副本ID
setPassClearanceID: function setPassClearanceID(data) {
if (data && Utils.next(data) != null) {
for (var i in data) {
this.passClearanceId[data[i].id] = {
status: 1
};
}
}
},
getPassClearanceID: function getPassClearanceID(id) {
if (!this.passClearanceId) return null;
return this.passClearanceId[id];
},
// 今天已挑战/扫荡次数
setChangeSweepCount: function setChangeSweepCount(data) {
if (data && Utils.next(data) != null) {
for (var i in data) {
this.change_count[data[i].type] = data[i].day_num;
}
}
//更新红点
},
getChangeSweepCount: function getChangeSweepCount(_type) {
if (!this.change_count) return 2;
if (this.change_count[_type] != null) {
return this.change_count[_type];
}
return 2;
},
// ==============================
// desc:宝石副本红点
// time:2018-09-11 12:45:33
// @return
// ==============================
checkRedStatus: function checkRedStatus() {
var type_open = game.configs.dungeon_stone_data.data_type_open;
if (type_open && type_open[1] && type_open[1].activate) {
return false;
}
return false;
},
setCurChangeSweep: function setCurChangeSweep(id) {
this.cur_sweep_id = id;
},
getCurChangeSweep: function getCurChangeSweep() {
if (this.cur_sweep_id) {
return this.cur_sweep_id;
}
return null;
}
});
cc._RF.pop();