123456789101112131415161718192021222324 |
- M_Global_Config = {}
- function M_Global_Config:getData(key)
- if self.datas == nil then
- return nil
- end
- return self.datas[key]
- end
- function M_Global_Config:init()
- self.datas = {}
- self.datas["TestKey1"] = {Key = "TestKey1", Desc = "XX字段", IntValue = 1, IntListValue = {2,3}, StrValue = "", StrListValue = {"lbt","lbbt"}, BoolValue = true}
- self.datas["TestKey2"] = {Key = "TestKey2", Desc = "XX说明", IntValue = 2, IntListValue = {}, StrValue = "lbt", StrListValue = {}, BoolValue = false}
- self.datas["WarTime"] = {Key = "WarTime", Desc = "每一关战斗时长(s)", IntValue = 120, IntListValue = {}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["SkillWeight"] = {Key = "SkillWeight", Desc = "技能选择权重 传说权重,史诗权重", IntValue = nil, IntListValue = {2,1}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["Rampage"] = {Key = "Rampage", Desc = "狂暴技能:魔币消耗倍数,奖励倍数", IntValue = nil, IntListValue = {2,2}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["TreasureChestRewards"] = {Key = "TreasureChestRewards", Desc = "魔导石宝箱 奖励百分比", IntValue = nil, IntListValue = {100,125,150}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["TreasureChestProbability"] = {Key = "TreasureChestProbability", Desc = "魔导石宝箱 奖励概率(万分比)", IntValue = nil, IntListValue = {5000,2500,2500}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["SuperTriggered"] = {Key = "SuperTriggered", Desc = "鱼阵时间触发 基础间隔,随机偏移", IntValue = nil, IntListValue = {60,20}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["Death"] = {Key = "Death", Desc = "主角受击次数死亡", IntValue = 5, IntListValue = {}, StrValue = "", StrListValue = {}, BoolValue = nil}
- self.datas["MonsterRefresh"] = {Key = "MonsterRefresh", Desc = "刷怪圈(外圈直径,内圈直径)", IntValue = nil, IntListValue = {900,600}, StrValue = "", StrListValue = {}, BoolValue = nil}
- end
- M_Global_Config:init()
|