mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 15:17:46 +00:00
33 lines
709 B
C++
33 lines
709 B
C++
#ifndef _SERVERNOTICEPACKET_H
|
|
#define _SERVERNOTICEPACKET_H
|
|
|
|
#include <Network/GamePacketNew.h>
|
|
#include <Network/PacketDef/Zone/ServerZoneDef.h>
|
|
#include "Forwards.h"
|
|
|
|
namespace Core::Network::Packets::Server
|
|
{
|
|
|
|
/**
|
|
* @brief The Ping response packet.
|
|
*/
|
|
class ServerNoticePacket :
|
|
public ZoneChannelPacket< FFXIVIpcServerNotice >
|
|
{
|
|
public:
|
|
ServerNoticePacket( uint32_t playerId, const std::string& message ) :
|
|
ZoneChannelPacket< FFXIVIpcServerNotice >( playerId, playerId )
|
|
{
|
|
initialize( message );
|
|
};
|
|
|
|
private:
|
|
void initialize( const std::string& message )
|
|
{
|
|
strcpy( m_data.message, message.c_str() );
|
|
};
|
|
};
|
|
|
|
}
|
|
|
|
#endif /*_SERVERNOTICEPACKET_H*/
|