1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 22:57:45 +00:00
sapphire/src/world/Network/PacketWrappers/ServerNoticePacket.h
2019-08-09 17:50:31 +10:00

32 lines
706 B
C++

#ifndef _SERVERNOTICEPACKET_H
#define _SERVERNOTICEPACKET_H
#include <Network/GamePacket.h>
#include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Forwards.h"
namespace Sapphire::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*/