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

22 lines
613 B
C#

using KianaBH.GameServer.Game.Player;
using KianaBH.KcpSharp;
using KianaBH.Proto;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;
namespace KianaBH.GameServer.Server.Packet.Send.Client;
public class PacketGetClientDataRsp : BasePacket
{
public PacketGetClientDataRsp(uint id, ClientDataType type, PlayerInstance player) : base(CmdIds.GetClientDataRsp)
{
var proto = new GetClientDataRsp
{
Id = id,
Type = type,
ClientDataList = { player.ClientData!.Clients.Select(x => x.ToProto()) }
};
SetData(proto);
}
}