Init enter game

This commit is contained in:
Naruse
2025-06-14 11:15:32 +08:00
commit 6a03b39f07
568 changed files with 92872 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using KianaBH.GameServer.Server.Packet.Send.Player;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Recv.Player;
[Opcode(CmdIds.PlayerLoginReq)]
public class HandlerPlayerLoginReq : Handler
{
public override async Task OnHandle(Connection connection, byte[] header, byte[] data)
{
connection.State = SessionStateEnum.ACTIVE;
await connection.Player!.OnLogin();
await connection.SendPacket(new PacketPlayerLoginRsp(connection.Player!));
}
}