mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2026-03-24 07:12:22 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user