1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00
sapphire/src/servers/sapphire_zone/Network/PacketWrappers/ServerNoticePacket.h

39 lines
712 B
C
Raw Normal View History

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>
#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 :
public ZoneChannelPacket< FFXIVIpcServerNotice >
2017-08-08 13:53:47 +02:00
{
public:
ServerNoticePacket( uint32_t playerId, const std::string& message ) :
ZoneChannelPacket< FFXIVIpcServerNotice >( playerId, playerId )
{
initialize( message );
};
2017-08-08 13:53:47 +02:00
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*/