2025-06-04 05:12:01 +08:00

33 lines
907 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

PropVO = class("PropVO")
PropValueType = {
Int = "Int",
Float = "Float",
Bool = "Bool"
}
function PropVO:ctor()
end
function PropVO:Init(id,typeID,name,displayName,isPercent,priority,valueType,defaultValue,IsClientPercent,isSyncFloat)
self.id = id
self.typeID = typeID
--變數名字atk,hp,mp..etc
self.name = name
--屬性含義名字:攻擊力,防禦力,生命值..etc
self.displayName = displayName
self.isPercent = isPercent
self.priority = priority
self.valueType = valueType
self.defaultValue = defaultValue
self.IsClientPercent = IsClientPercent
self.isSyncFloat = isSyncFloat
end
function PropVO.Create(id,typeID,name,displayName,isPercent,priority,valueType,defaultValue,IsClientPercent,isSyncFloat)
local data = PropVO.new()
data:Init(id,typeID,name,displayName,isPercent,priority,valueType,defaultValue,IsClientPercent,isSyncFloat)
return data
end
-- return PropVO