mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-15 06:14:35 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Client;
|
||||
|
||||
public class PacketClientReportRsp : BasePacket
|
||||
{
|
||||
public PacketClientReportRsp() : base(CmdIds.ClientReportRsp)
|
||||
{
|
||||
var proto = new ClientReportRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Client;
|
||||
|
||||
public class PacketGetClientMailDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetClientMailDataRsp() : base(CmdIds.GetClientMailDataRsp)
|
||||
{
|
||||
var proto = new GetClientMailDataRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Client;
|
||||
|
||||
public class PacketGetClientSettingRsp : BasePacket
|
||||
{
|
||||
public PacketGetClientSettingRsp(uint ClientSettingType) : base(CmdIds.GetClientSettingRsp)
|
||||
{
|
||||
var proto = new GetClientSettingRsp
|
||||
{
|
||||
ClientSettingType = ClientSettingType,
|
||||
IsWeeklyGuideSwitchOn = true,
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Client;
|
||||
|
||||
public class PacketReportClientDataVersionRsp : BasePacket
|
||||
{
|
||||
public PacketReportClientDataVersionRsp(uint version) : base(CmdIds.ReportClientDataVersionRsp)
|
||||
{
|
||||
var proto = new ReportClientDataVersionRsp
|
||||
{
|
||||
ServerVersion = version
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Client;
|
||||
|
||||
public class PacketSetClientDataRsp : BasePacket
|
||||
{
|
||||
public PacketSetClientDataRsp(uint Id, ClientDataType Type) : base(CmdIds.SetClientDataRsp)
|
||||
{
|
||||
var proto = new SetClientDataRsp
|
||||
{
|
||||
Id = Id,
|
||||
Type = Type
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user