PGRData/Resources/Scripts/XEntity/XMoeWar/XMoeWarPreparationVoteItem.lua

30 lines
683 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
--萌战赛事筹备--应援数据
local type = type
local XMoeWarPreparationVoteItem = XClass(nil, "XMoeWarPreparationVoteItem")
local DefaultMain = {
ItemId = 0, --道具id
ItemCount = 0, --道具数量
}
function XMoeWarPreparationVoteItem:Ctor()
for key, value in pairs(DefaultMain) do
if type(value) == "table" then
self[key] = {}
else
self[key] = value
end
end
end
function XMoeWarPreparationVoteItem:UpdateData(data)
self.ItemId = data.ItemId
self.ItemCount = data.ItemCount
end
function XMoeWarPreparationVoteItem:GetItemCount()
return self.ItemCount
end
return XMoeWarPreparationVoteItem