Files
PemukulPaku/GameServer/Handlers/Two/SyncTimeReqHandler.cs
2023-06-05 13:18:07 +07:00

22 lines
599 B
C#

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));
}
}
}