M_HealthGame.lua 464 B

12345678910111213141516171819
  1. M_HealthGame = {}
  2. function M_HealthGame:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_HealthGame:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, Type = "1", Describe = ""}
  11. self.datas[2] = {ID = 2, Type = "2", Describe = ""}
  12. self.datas[3] = {ID = 3, Type = "3", Describe = ""}
  13. self.datas[4] = {ID = 4, Type = "4", Describe = ""}
  14. self.datas[5] = {ID = 5, Type = "5", Describe = ""}
  15. end
  16. M_HealthGame:init()