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
|
|
|
|
2017-08-18 17:16:15 +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:
|
2017-12-08 11:46:47 +01:00
|
|
|
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:
|
2017-12-08 11:46:47 +01:00
|
|
|
void initialize( Entity::Player& player, int32_t inVal )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
m_data.timeInMilliseconds = 0x000014D00000000 + inVal;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-08 11:46:47 +01:00
|
|
|
#endif /*_CORE_NETWORK_PACKETS_CPINGPACKET_H*/
|