forked from PGR/ascnet
LoginRequest handler
This commit is contained in:
parent
42e69df9cb
commit
e6bcc9b01a
|
@ -1,5 +1,6 @@
|
||||||
using AscNet.Common.MsgPack;
|
using AscNet.Common.MsgPack;
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
|
using static AscNet.GameServer.Packet;
|
||||||
|
|
||||||
namespace AscNet.GameServer.Handlers
|
namespace AscNet.GameServer.Handlers
|
||||||
{
|
{
|
||||||
|
@ -18,5 +19,17 @@ namespace AscNet.GameServer.Handlers
|
||||||
|
|
||||||
session.SendResponse(response);
|
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
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue