M_Global_Config.lua 490 B

12345678910111213141516
  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", IntValue = 1, IntListValue = {2,3}, StrValue = "", StrListValue = {"lbt","lbbt"}, BoolValue = true}
  11. self.datas["TestKey2"] = {Key = "TestKey2", IntValue = 2, IntListValue = {}, StrValue = "lbt", StrListValue = {}, BoolValue = false}
  12. end
  13. M_Global_Config:init()