UIExpeditionBattleCtr.lua 551 B

12345678910111213141516171819202122232425262728
  1. local UIExpeditionBattleCtr = class("UIExpeditionBattleCtr", require("UICtrBase"))
  2. function UIExpeditionBattleCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIExpeditionBattleCtr:SetData(data)
  6. self.asyncIdx = 0
  7. if data == nil then return end
  8. self.data = data
  9. end
  10. function UIExpeditionBattleCtr:GetAsyncIdx()
  11. self.asyncIdx = self.asyncIdx + 1
  12. return self.asyncIdx
  13. end
  14. function UIExpeditionBattleCtr:GetData()
  15. return self.data
  16. end
  17. function UIExpeditionBattleCtr:OnDispose()
  18. self.data = nil
  19. self.view = nil
  20. end
  21. return UIExpeditionBattleCtr