31 lines
778 B
Lua
31 lines
778 B
Lua
------------------------------------------------
|
|
--作者: yangqf
|
|
--日期: 2021-11-11
|
|
--文件: UnrealEquipPart.lua
|
|
--模块: UnrealEquipPart
|
|
--描述: 幻装部位
|
|
------------------------------------------------
|
|
|
|
local UnrealEquipPart = {
|
|
--部位ID
|
|
Part = 0,
|
|
--装备实例
|
|
Equip = nil,
|
|
}
|
|
|
|
function UnrealEquipPart:New(info)
|
|
local _m = Utils.DeepCopy(self)
|
|
_m.Part = info.part
|
|
if info.unrealEquipItem ~= nil then
|
|
if info.unrealEquipItem.num == nil then
|
|
info.unrealEquipItem.num = 1
|
|
end
|
|
_m.Equip = LuaItemBase.CreateItemBaseByMsg(info.unrealEquipItem)
|
|
_m.Equip.ContainerType = ContainerType.ITEM_LOCATION_EQUIP
|
|
else
|
|
_m.Equip = nil
|
|
end
|
|
return _m
|
|
end
|
|
|
|
return UnrealEquipPart |