M_ActiveReward.lua 564 B

1234567891011121314151617
  1. M_ActiveReward = {}
  2. function M_ActiveReward:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_ActiveReward:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, NeedActive = 2, Name = "10冰冻", ItemId = 110, Count = 2, Icon = "UI/Image/FreezeIcon.png"}
  11. self.datas[2] = {ID = 2, NeedActive = 4, Name = "2000金币", ItemId = 1, Count = 2000, Icon = "Common3/M_ShopIcon_6.png"}
  12. self.datas[3] = {ID = 3, NeedActive = 6, Name = "3龙珠", ItemId = 14, Count = 3, Icon = "Common3/M_Bead.png"}
  13. end
  14. M_ActiveReward:init()