Files
KianaBH3/GameServer/Server/Packet/Send/Item/PacketGetEquipmentDataRsp.cs
2025-06-14 11:15:32 +08:00

19 lines
512 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 // TODO
{
WeaponList = { player.InventoryManager!.Data.WeaponItems.Select(weapon => weapon.ToWeaponProto()) }
};
SetData(proto);
}
}