Files
Main/Assets/GameAssets/Resources/Lua/Logic/ServeCrazy/ServeCrazyItemData.lua
2025-01-25 04:38:09 +08:00

32 lines
739 B
Lua
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.

------------------------------------------------
--作者: 王圣
--日期: 2019-07-11
--文件: ServeCrazyItemData.lua
--模块: ServeCrazyItemData
--描述: 开服狂欢奖励数据
------------------------------------------------
--引用
local ServeCrazyItemData = {
--道具Id
Id = 0,
--数量
Num = 0,
--是否绑定 0 非绑 1 绑定
Bind = 1,
--occ
Occ = -1,
}
function ServeCrazyItemData:New()
local _m = Utils.DeepCopy(self)
return _m
end
function ServeCrazyItemData:Parase(str)
local list1 = Utils.SplitStr(str,'_')
self.Id = tonumber(list1[1])
self.Num = tonumber(list1[2])
self.Occ = tonumber(list1[3])
self.Bind = 1
end
return ServeCrazyItemData