forked from PGR/ascnet
1
0
Fork 0

LoginRequest handler

This commit is contained in:
Kyle Belanger 2023-10-10 09:59:08 -04:00
parent 42e69df9cb
commit e6bcc9b01a
1 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,6 @@
using AscNet.Common.MsgPack;
using MessagePack;
using static AscNet.GameServer.Packet;
namespace AscNet.GameServer.Handlers
{
@ -18,5 +19,17 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(response);
}
[PacketHandler("LoginRequest")]
public static void LoginRequestHandler(Session session, byte[] packet)
{
session.SendResponse(new LoginResponse
{
Code = 0,
ReconnectToken = "eeeeeeeeeeeeeeh",
UtcOffset = 0,
UtcServerTime = (uint)DateTime.UtcNow.Ticks
});
}
}
}