M_Global_Config.lua 2.0 KB

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