2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _SERVERNOTICEPACKET_H
|
|
|
|
#define _SERVERNOTICEPACKET_H
|
|
|
|
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Network/GamePacketNew.h>
|
|
|
|
#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
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Network {
|
|
|
|
namespace Packets {
|
|
|
|
namespace Server {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The Ping response packet.
|
|
|
|
*/
|
|
|
|
class ServerNoticePacket :
|
2017-11-21 18:43:09 +01:00
|
|
|
public ZoneChannelPacket< FFXIVIpcServerNotice >
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ServerNoticePacket( uint32_t playerId, const std::string& message ) :
|
2017-11-21 18:43:09 +01:00
|
|
|
ZoneChannelPacket< FFXIVIpcServerNotice >( playerId, playerId )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
initialize( message );
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( const std::string& message )
|
|
|
|
{
|
|
|
|
strcpy( m_data.message, message.c_str() );
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-18 12:36:52 +01:00
|
|
|
#endif /*_SERVERNOTICEPACKET_H*/
|