29 lines
447 B
Lua
29 lines
447 B
Lua
local UIPvPCtr = class("UIPvPCtr", require("UICtrBase"))
|
|
|
|
function UIPvPCtr:Init(view)
|
|
self.view = view
|
|
end
|
|
|
|
function UIPvPCtr:SetData(data)
|
|
self.asyncIdx = 0
|
|
if data == nil then return end
|
|
self.data = data
|
|
end
|
|
|
|
function UIPvPCtr:GetAsyncIdx()
|
|
self.asyncIdx = self.asyncIdx + 1
|
|
return self.asyncIdx
|
|
end
|
|
|
|
function UIPvPCtr:GetData()
|
|
return self.data
|
|
end
|
|
|
|
function UIPvPCtr:OnDispose()
|
|
self.data = nil
|
|
self.view = nil
|
|
end
|
|
|
|
return UIPvPCtr
|
|
|