mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-12 13:04:33 +01:00
22 lines
777 B
C#
22 lines
777 B
C#
using KianaBH.GameServer.Game.Player;
|
|
using KianaBH.KcpSharp;
|
|
using KianaBH.Proto;
|
|
|
|
namespace KianaBH.GameServer.Server.Packet.Send.Item;
|
|
|
|
public class PacketGetEquipmentDataRsp : BasePacket
|
|
{
|
|
public PacketGetEquipmentDataRsp(PlayerInstance player) : base(CmdIds.GetEquipmentDataRsp)
|
|
{
|
|
var proto = new GetEquipmentDataRsp
|
|
{
|
|
WeaponList = { player.InventoryManager!.Data.WeaponItems.Select(weapon => weapon.ToWeaponProto()) },
|
|
StigmataList = { player.InventoryManager!.Data.StigmataItems.Select(stigmata => stigmata.ToStigmataProto()) },
|
|
MaterialList = { player.InventoryManager!.Data.MaterialItems.Select(material => material.ToMaterialProto()) },
|
|
IsAll = true,
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
}
|