UIDojoMatchCtr.lua 518 B

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