mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using EggLink.DanhengServer.Database.Inventory;
|
|
using EggLink.DanhengServer.Proto;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Scene
|
|
{
|
|
public class PacketScenePlaneEventScNotify : BasePacket
|
|
{
|
|
public PacketScenePlaneEventScNotify(ItemData item) : this([item])
|
|
{
|
|
}
|
|
|
|
public PacketScenePlaneEventScNotify(List<ItemData> itemDatas) : base(CmdIds.ScenePlaneEventScNotify)
|
|
{
|
|
var itemList = new ItemList();
|
|
foreach (var item in itemDatas)
|
|
{
|
|
itemList.ItemList_.Add(item.ToProto());
|
|
}
|
|
|
|
var data = new ScenePlaneEventScNotify()
|
|
{
|
|
GetItemList = itemList,
|
|
};
|
|
|
|
SetData(data);
|
|
}
|
|
|
|
public PacketScenePlaneEventScNotify(ItemList list) : base(CmdIds.ScenePlaneEventScNotify)
|
|
{
|
|
|
|
var data = new ScenePlaneEventScNotify()
|
|
{
|
|
GetItemList = list,
|
|
};
|
|
|
|
SetData(data);
|
|
}
|
|
}
|
|
}
|