M_ActivityIntegralExchangeCFG.lua 987 B

12345678910111213141516171819202122
  1. M_ActivityIntegralExchangeCFG = {}
  2. function M_ActivityIntegralExchangeCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_ActivityIntegralExchangeCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, VoucherId = 204, VoucherCount = 1, ItemId = 1, ItemCount = 40000}
  11. self.datas[2] = {ID = 2, VoucherId = 204, VoucherCount = 5, ItemId = 24, ItemCount = 2}
  12. self.datas[3] = {ID = 3, VoucherId = 204, VoucherCount = 10, ItemId = 25, ItemCount = 1}
  13. self.datas[4] = {ID = 4, VoucherId = 204, VoucherCount = 25, ItemId = 26, ItemCount = 1}
  14. self.datas[5] = {ID = 5, VoucherId = 204, VoucherCount = 100, ItemId = 27, ItemCount = 1}
  15. self.datas[6] = {ID = 6, VoucherId = 205, VoucherCount = 1, ItemId = 25, ItemCount = 1}
  16. self.datas[7] = {ID = 7, VoucherId = 205, VoucherCount = 5, ItemId = 26, ItemCount = 2}
  17. self.datas[8] = {ID = 8, VoucherId = 205, VoucherCount = 10, ItemId = 27, ItemCount = 1}
  18. end
  19. M_ActivityIntegralExchangeCFG:init()