Fish_LoadResourceCFG.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Fish_LoadResourceCFG = {}
  2. function Fish_LoadResourceCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function Fish_LoadResourceCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, ResType = 1, ResPath = "fish/huolongzhua.ExportJson"}
  11. self.datas[2] = {ID = 2, ResType = 1, ResPath = "Turret/wanga.ExportJson"}
  12. self.datas[3] = {ID = 3, ResType = 2, ResPath = "fish/fish01.plist"}
  13. self.datas[4] = {ID = 4, ResType = 2, ResPath = "fish/fish02.plist"}
  14. self.datas[5] = {ID = 5, ResType = 2, ResPath = "fish/fish03.plist"}
  15. self.datas[6] = {ID = 6, ResType = 2, ResPath = "fish/fish04.plist"}
  16. self.datas[7] = {ID = 7, ResType = 2, ResPath = "fish/fish05.plist"}
  17. self.datas[8] = {ID = 8, ResType = 2, ResPath = "fish/fish06.plist"}
  18. self.datas[9] = {ID = 9, ResType = 2, ResPath = "fish/fish07.plist"}
  19. self.datas[10] = {ID = 10, ResType = 2, ResPath = "fish/fish08.plist"}
  20. self.datas[11] = {ID = 11, ResType = 2, ResPath = "fish/fish09.plist"}
  21. self.datas[12] = {ID = 12, ResType = 2, ResPath = "fish/fish10.plist"}
  22. self.datas[13] = {ID = 13, ResType = 2, ResPath = "fish/fish11.plist"}
  23. self.datas[14] = {ID = 14, ResType = 2, ResPath = "fish/fish12.plist"}
  24. self.datas[15] = {ID = 15, ResType = 2, ResPath = "fish/fish13.plist"}
  25. self.datas[16] = {ID = 16, ResType = 2, ResPath = "fish/fish14.plist"}
  26. self.datas[17] = {ID = 17, ResType = 2, ResPath = "fish/fish15.plist"}
  27. self.datas[18] = {ID = 18, ResType = 2, ResPath = "fish/fish16.plist"}
  28. self.datas[19] = {ID = 19, ResType = 2, ResPath = "fish/fish17.plist"}
  29. self.datas[20] = {ID = 20, ResType = 2, ResPath = "fish/fish18.plist"}
  30. self.datas[21] = {ID = 21, ResType = 2, ResPath = "fish/fish19.plist"}
  31. self.datas[22] = {ID = 22, ResType = 2, ResPath = "Effect/GoldDrop.plist"}
  32. self.datas[23] = {ID = 23, ResType = 2, ResPath = "Effect/SilverDrop.plist"}
  33. self.datas[24] = {ID = 24, ResType = 1, ResPath = "fish/JINhama.ExportJson"}
  34. end
  35. Fish_LoadResourceCFG:init()