UIGuildDemonCtr.lua 683 B

12345678910111213141516171819202122232425262728293031323334353637
  1. local UIGuildDemonCtr = class("UIGuildDemonCtr", require("UICtrBase"))
  2. function UIGuildDemonCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIGuildDemonCtr:SetData(data)
  6. self.asyncIdx = 0
  7. if data == nil then return end
  8. self.data = data
  9. end
  10. function UIGuildDemonCtr:GetShowData()
  11. return self.data or {}
  12. end
  13. function UIGuildDemonCtr:GetAsyncIdx()
  14. self.asyncIdx = self.asyncIdx + 1
  15. return self.asyncIdx
  16. end
  17. function UIGuildDemonCtr:ChallengeBoss()
  18. ManagerContainer.DataMgr.GuildDemonData:StartGuildDemonBattle()
  19. end
  20. function UIGuildDemonCtr:GetData()
  21. return self.data
  22. end
  23. function UIGuildDemonCtr:OnDispose()
  24. self.data = nil
  25. self.view = nil
  26. end
  27. return UIGuildDemonCtr