Fish_ShellItemCFG.lua 534 B

123456789101112131415161718
  1. Fish_ShellItemCFG = {}
  2. function Fish_ShellItemCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function Fish_ShellItemCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, Name = "海草", Rate = 20, Sound = "beike_haicao"}
  11. self.datas[2] = {ID = 2, Name = "珊瑚", Rate = 50, Sound = "beike_shanhu"}
  12. self.datas[3] = {ID = 3, Name = "海星", Rate = 80, Sound = "beike_haixing"}
  13. self.datas[4] = {ID = 4, Name = "珍珠", Rate = 150, Sound = "beike_zhenzhu"}
  14. end
  15. Fish_ShellItemCFG:init()