1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 07:07:45 +00:00
sapphire/src/world/Network/PacketWrappers/ServerNoticePacket.h

33 lines
708 B
C
Raw Normal View History

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>
#include "Forwards.h"
2017-08-08 13:53:47 +02: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.
*/
class ServerNoticePacket : public WorldChannelPacket< FFXIVIpcServerNotice >
{
2018-10-28 21:53:21 +01:00
public:
ServerNoticePacket( uint32_t playerId, const std::string& message ) :
WorldChannelPacket< FFXIVIpcServerNotice >( playerId, playerId )
2018-10-28 21:53:21 +01:00
{
initialize( message );
};
private:
void initialize( const std::string& message )
{
strcpy( m_data.message, message.c_str() );
};
};
2017-08-08 13:53:47 +02:00
}
#endif /*_SERVERNOTICEPACKET_H*/