1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00
sapphire/src/servers/Server_Zone/Network/PacketWrappers/PingPacket.h

39 lines
767 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _CORE_NETWORK_PACKETS_PINGPACKET_H
#define _CORE_NETWORK_PACKETS_PINGPACKET_H
2017-08-19 00:18:40 +02:00
#include <src/servers/Server_Common/Network/GamePacketNew.h>
2017-08-08 13:53:47 +02:00
#include "src/servers/Server_Zone/Forwards.h"
2017-08-08 13:53:47 +02:00
namespace Core {
namespace Network {
namespace Packets {
namespace Server {
/**
* @brief The Ping response packet.
*/
class PingPacket :
2017-11-21 18:43:09 +01:00
public ZoneChannelPacket< FFXIVIpcPing >
2017-08-08 13:53:47 +02:00
{
public:
PingPacket( Entity::Player& player, int32_t inVal ) :
ZoneChannelPacket< FFXIVIpcPing >( player.getId(), player.getId() )
2017-08-08 13:53:47 +02:00
{
initialize( player, inVal );
};
private:
void initialize( Entity::Player& player, int32_t inVal )
2017-08-08 13:53:47 +02:00
{
m_data.timeInMilliseconds = 0x000014D00000000 + inVal;
};
};
}
}
}
}
#endif /*_CORE_NETWORK_PACKETS_CPINGPACKET_H*/