1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-15 15:07:45 +00:00
sapphire/src/world/Network/PacketWrappers/PingPacket.h

30 lines
608 B
C
Raw Normal View History

#pragma once
2017-08-08 13:53:47 +02:00
2019-03-08 15:34:38 +01:00
#include <Network/GamePacket.h>
2017-08-08 13:53:47 +02:00
#include "Forwards.h"
2017-08-08 13:53:47 +02: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.
*/
class PingPacket : public ZoneChannelPacket< FFXIVIpcSync >
{
2018-10-28 21:53:21 +01:00
public:
PingPacket( Entity::Player& player, int32_t inVal ) :
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 )
{
m_data.clientTimeValue = inVal;
m_data.transmissionInterval = 333;
2018-10-28 21:53:21 +01:00
};
};
2017-08-08 13:53:47 +02:00
}