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

29 lines
648 B
C
Raw Normal View History

#pragma once
2017-08-08 13:53:47 +02:00
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::WorldPackets::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 ZoneChannelPacket< FFXIVIpcSendSystemMessage >
{
2018-10-28 21:53:21 +01:00
public:
ServerNoticePacket( uint32_t playerId, const std::string& message ) :
ZoneChannelPacket< FFXIVIpcSendSystemMessage >( 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() );
2018-10-28 21:53:21 +01:00
};
};
2017-08-08 13:53:47 +02:00
}