XuanYuanMirrorManager = {}; local raceTowerConfig = ConfigManager.GetConfig(ConfigName.RaceTowerConfig) local raceTowerRewardConfig = ConfigManager.GetConfig(ConfigName.RaceTowerRewardConfig) local this = XuanYuanMirrorManager local levelData = {} function this.Initialize() this.InitMirrorData() end --前端表 function this.GetMirrorData(_type) _type = _type - 73 if levelData[_type] then return levelData[_type] end end function this.InitMirrorData() levelData = {} for k,v in ipairs(raceTowerConfig) do if not levelData[v.Type] then levelData[v.Type] = {} end local data={} data.id = v.Id data.type = v.Type data.openRules = v.OpenRules data.difficulity = v.Quality data.monsterId = v.MonsterId LogGreen("v.TeamRules:"..#v.TeamRules) data.teamRules = v.TeamRules data.condition = string.format(Language[12248],data.teamRules[1][2],this.PropertyName(data.teamRules[1][1])) data.power = v.FightForce data.rewardList = {} --概率奖励 local tempConfig = ConfigManager.GetConfigData(ConfigName.RewardGroup,v.Reward) LogGreen("ShowItem:"..#tempConfig.ShowItem) for i=1, #tempConfig.ShowItem do table.insert(data.rewardList,{id = tempConfig.ShowItem[i][1],num = tempConfig.ShowItem[i][2],israte = true}) end --扫荡奖励 LogGreen("RewardView:"..#v.RewardView) for i=1, #v.RewardView do table.insert(data.rewardList,{id = v.RewardView[i][1],num = v.RewardView[i][2]}) end --首通奖励 tempConfig = ConfigManager.GetConfigData(ConfigName.RewardGroup,v.FirstReward) LogGreen("ShowItem:"..#tempConfig.ShowItem) for i=1, #tempConfig.ShowItem do table.insert(data.rewardList,{id = tempConfig.ShowItem[i][1],num = tempConfig.ShowItem[i][2],isFirst = true}) end data.state = -1 table.insert(levelData[v.Type],data) end end function this.UpdateState() end function this.PropertyName(_type) _type = tonumber(_type) if _type == 1 then return Language[11057] elseif _type == 2 then return Language[12120] elseif _type == 3 then return Language[12121] elseif _type == 4 then return Language[12122] else return Language[11057] end end function this.GetState(_type,id) return -1 end function this.GetRewardView() local dataList = {} for k,v in pairs(raceTowerRewardConfig) do local data = {} if v.Section[1] == v.Section[2] then data.rank = v.Section[1] elseif v.Section[2] ~= -1 then data.rank = v.Section[1] - v.Section[2] else end end end return this