PSO2SERVER/Server/Packets/PSOPackets/11-ClientPacket/11-0E-ClientPongPacket.cs
2024-09-22 00:31:34 +08:00

34 lines
808 B
C#

using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Packets.PSOPackets
{
public class ClientPongPacket : Packet
{
private readonly ulong _clientTime;
public ClientPongPacket(ulong clientTime)
{
_clientTime = clientTime;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
pkt.Write(_clientTime);
pkt.Write(Helper.Timestamp(DateTime.UtcNow));
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x11, 0x0E, PacketFlags.None);
}
#endregion
}
}