2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _SERVERNOTICEPACKET_H
|
|
|
|
#define _SERVERNOTICEPACKET_H
|
|
|
|
|
2019-03-08 15:34:38 +01:00
|
|
|
#include <Network/GamePacket.h>
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Network/PacketDef/Zone/ServerZoneDef.h>
|
2017-12-08 23:27:59 +01:00
|
|
|
#include "Forwards.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
namespace Sapphire::Network::Packets::Server
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
/**
|
|
|
|
* @brief The Ping response packet.
|
|
|
|
*/
|
2019-04-04 23:29:52 +02:00
|
|
|
class ServerNoticePacket : public ZoneChannelPacket< FFXIVIpcServerNotice >
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-10-28 21:53:21 +01:00
|
|
|
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() );
|
|
|
|
};
|
2018-08-29 21:40:59 +02:00
|
|
|
};
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-12-18 12:36:52 +01:00
|
|
|
#endif /*_SERVERNOTICEPACKET_H*/
|