UIForgePopCtr.lua 653 B

12345678910111213141516171819202122232425262728293031
  1. local UIForgePopCtr = class("UIForgePopCtr", require("UICtrBase"))
  2. function UIForgePopCtr:Init(view)
  3. self.view = view
  4. end
  5. function UIForgePopCtr:SetData(data)
  6. self.data = data
  7. self.asyncIdx = 0
  8. end
  9. function UIForgePopCtr:GetAsyncIdx()
  10. self.asyncIdx = self.asyncIdx + 1
  11. return self.asyncIdx
  12. end
  13. function UIForgePopCtr:GetData()
  14. return self.data
  15. end
  16. function UIForgePopCtr:OnDispose()
  17. self.data = nil
  18. self.view = nil
  19. end
  20. function UIForgePopCtr:SendEquipOneKeyForge(type, jobType)
  21. ManagerContainer.NetManager:SendMessage(ProtoMsgId.CS_EQUIP_FORGE_REQ, {config_id = 0, equip_type = type, sub_equip_type = jobType})
  22. end
  23. return UIForgePopCtr