2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _CORE_NETWORK_PACKETS_PINGPACKET_H
|
|
|
|
#define _CORE_NETWORK_PACKETS_PINGPACKET_H
|
|
|
|
|
2019-03-08 15:34:38 +01:00
|
|
|
#include <Network/GamePacket.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
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
namespace Sapphire::Network::Packets::WorldPackets::Server
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
/**
|
|
|
|
* @brief The Ping response packet.
|
|
|
|
*/
|
2021-11-27 00:53:57 +01:00
|
|
|
class PingPacket : public ZoneChannelPacket< FFXIVIpcSync >
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
|
|
|
PingPacket( Entity::Player& player, int32_t inVal ) :
|
2021-11-27 00:53:57 +01:00
|
|
|
ZoneChannelPacket< FFXIVIpcSync >( player.getId(), player.getId() )
|
2018-10-28 21:53:21 +01:00
|
|
|
{
|
|
|
|
initialize( player, inVal );
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( Entity::Player& player, int32_t inVal )
|
|
|
|
{
|
2022-01-07 21:22:55 +01:00
|
|
|
m_data.clientTimeValue = inVal;
|
|
|
|
m_data.transmissionInterval = 333;
|
2018-10-28 21:53:21 +01:00
|
|
|
};
|
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*/
|