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

34 lines
840 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
--萌战赛事筹备--援助数据
local type = type
local XMoeWarPreparationAssistance = XClass(nil, "XMoeWarPreparationAssistance")
local DefaultMain = {
AssistanceCount = 0, --援助次数
RecoveryTime = 0, --恢复时间点
}
function XMoeWarPreparationAssistance:Ctor()
for key, value in pairs(DefaultMain) do
if type(value) == "table" then
self[key] = {}
else
self[key] = value
end
end
end
function XMoeWarPreparationAssistance:UpdateData(data)
self.AssistanceCount = data.AssistanceCount
self.RecoveryTime = data.RecoveryTime
end
function XMoeWarPreparationAssistance:GetAssistanceCount()
return self.AssistanceCount
end
function XMoeWarPreparationAssistance:GetRecoveryTime()
return self.RecoveryTime
end
return XMoeWarPreparationAssistance