UITitleListCtr.lua 661 B

1234567891011121314151617181920212223242526272829303132
  1. local UITitleListCtr = class("UITitleListCtr", require("UICtrBase"))
  2. function UITitleListCtr:Init(view)
  3. self.view = view
  4. end
  5. function UITitleListCtr:SetData(data)
  6. self.asyncIdx = 0
  7. if data == nil then return end
  8. self.data = data
  9. end
  10. function UITitleListCtr:GetAsyncIdx()
  11. self.asyncIdx = self.asyncIdx + 1
  12. return self.asyncIdx
  13. end
  14. function UITitleListCtr:SendTitleOperateReq(state,id)
  15. ManagerContainer.NetManager:SendMessage(ProtoMsgId.CS_HEAD_OPERATE_REQ,{operateType = state,headId = id})
  16. end
  17. function UITitleListCtr:GetData()
  18. return self.data
  19. end
  20. function UITitleListCtr:OnDispose()
  21. self.data = nil
  22. self.view = nil
  23. end
  24. return UITitleListCtr