M_GiftCFG.lua 1.0 KB

1234567891011121314151617181920
  1. M_GiftCFG = {}
  2. function M_GiftCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_GiftCFG:init()
  9. self.datas = {}
  10. self.datas[30101] = {GiftId = 30101, Coin = 50, isShow = 1, Percent = 100, Vip = 1, Action = "meijin", TextIcon = "Common3/M_Gold.png"}
  11. self.datas[30102] = {GiftId = 30102, Coin = 200, isShow = 1, Percent = 100, Vip = 2, Action = "jintiao", TextIcon = "Common3/M_Gold.png"}
  12. self.datas[30103] = {GiftId = 30103, Coin = 1000, isShow = 1, Percent = 100, Vip = 3, Action = "yaoqianshu", TextIcon = "Common3/M_Gold.png"}
  13. self.datas[30104] = {GiftId = 30104, Coin = 2000, isShow = 1, Percent = 100, Vip = 4, Action = "paoche", TextIcon = "Common3/M_Gold.png"}
  14. self.datas[30105] = {GiftId = 30105, Coin = 5000, isShow = 1, Percent = 100, Vip = 5, Action = "youting", TextIcon = "Common3/M_Gold.png"}
  15. self.datas[30106] = {GiftId = 30106, Coin = 10000, isShow = 1, Percent = 100, Vip = 6, Action = "feiji", TextIcon = "Common3/M_Gold.png"}
  16. end
  17. M_GiftCFG:init()