2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _CORE_NETWORK_PACKETS_PINGPACKET_H
|
|
|
|
#define _CORE_NETWORK_PACKETS_PINGPACKET_H
|
|
|
|
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Network/GamePacketNew.h>
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2017-12-08 23:27:59 +01:00
|
|
|
#include "Forwards.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
namespace Core::Network::Packets::Server
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
/**
|
|
|
|
* @brief The Ping response packet.
|
|
|
|
*/
|
|
|
|
class PingPacket :
|
|
|
|
public ZoneChannelPacket< FFXIVIpcPing >
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
|
|
|
PingPacket( Entity::Player& player, int32_t inVal ) :
|
|
|
|
ZoneChannelPacket< FFXIVIpcPing >( player.getId(), player.getId() )
|
|
|
|
{
|
|
|
|
initialize( player, inVal );
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( Entity::Player& player, int32_t inVal )
|
|
|
|
{
|
|
|
|
m_data.timeInMilliseconds = 0x000014D00000000 + inVal;
|
|
|
|
};
|
2018-08-29 21:40:59 +02:00
|
|
|
};
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-12-08 11:46:47 +01:00
|
|
|
#endif /*_CORE_NETWORK_PACKETS_CPINGPACKET_H*/
|