using ODMO.Commons.Writers;
namespace ODMO.Commons.Packets.CharacterServer
{
public class ConnectionPacket : PacketWriter
{
private const int PacketNumber = -2;
///
/// Used on client requesting connection with the server.
///
/// The server-client handshake
/// Timestamp when the handshake has been accepted
public ConnectionPacket(short handshake, uint handshakeTimestamp)
{
Type(PacketNumber);
WriteShort(handshake);
WriteUInt(handshakeTimestamp);
}
}
}