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