mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
32 lines
700 B
C++
32 lines
700 B
C++
#ifndef _CORE_NETWORK_PACKETS_PINGPACKET_H
|
|
#define _CORE_NETWORK_PACKETS_PINGPACKET_H
|
|
|
|
#include <Network/GamePacket.h>
|
|
|
|
#include "Forwards.h"
|
|
|
|
namespace Sapphire::Network::Packets::Server
|
|
{
|
|
|
|
/**
|
|
* @brief The Ping response packet.
|
|
*/
|
|
class PingPacket : public WorldChannelPacket< FFXIVIpcPing >
|
|
{
|
|
public:
|
|
PingPacket( Entity::Player& player, int32_t inVal ) :
|
|
WorldChannelPacket< FFXIVIpcPing >( player.getId(), player.getId() )
|
|
{
|
|
initialize( player, inVal );
|
|
};
|
|
|
|
private:
|
|
void initialize( Entity::Player& player, int32_t inVal )
|
|
{
|
|
m_data.timeInMilliseconds = 0x000014D00000000 + inVal;
|
|
};
|
|
};
|
|
|
|
}
|
|
|
|
#endif /*_CORE_NETWORK_PACKETS_CPINGPACKET_H*/
|