mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 21:54:34 +01:00
okey
This commit is contained in:
21
GameServer/Handlers/SyncTimeReqHandler.cs
Normal file
21
GameServer/Handlers/SyncTimeReqHandler.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Common;
|
||||
using Common.Resources.Proto;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers
|
||||
{
|
||||
[PacketCmdId(CmdId.SyncTimeReq)]
|
||||
internal class SyncTimeReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
SyncTimeReq Data = packet.GetDecodedBody<SyncTimeReq>();
|
||||
|
||||
session.Send(Packet.FromProto(new SyncTimeRsp()
|
||||
{
|
||||
retcode = SyncTimeRsp.Retcode.Succ,
|
||||
CurTime = (uint)Global.GetUnixInSeconds(),
|
||||
Seq = Data.Seq
|
||||
}, CmdId.SyncTimeRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user