1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 16:37:45 +00:00
sapphire/src/servers/sapphire_zone/Network/PacketWrappers/QuestMessagePacket.h

38 lines
954 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _QUESTMESSAGE_H
#define _QUESTMESSAGE_H
2018-03-06 22:22:19 +01:00
#include <Network/GamePacketNew.h>
#include "Actor/Player.h"
#include "Forwards.h"
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
namespace Core::Network::Packets::Server
2017-08-08 13:53:47 +02:00
{
2018-10-28 21:53:21 +01:00
/**
* @brief Packet to display a quest specific info message.
*/
class QuestMessagePacket : public ZoneChannelPacket< FFXIVIpcQuestMessage >
{
2018-10-28 21:53:21 +01:00
public:
QuestMessagePacket( Entity::ActorPtr pActor, uint32_t questId, int8_t msgId,
uint8_t type = 0, uint32_t var1 = 0, uint32_t var2 = 0 ) :
ZoneChannelPacket< FFXIVIpcQuestMessage >( pActor->getId(), pActor->getId() )
{
initialize( questId, msgId, type, var1, var2 );
};
private:
void initialize( uint32_t questId, int8_t msgId, uint8_t type, uint32_t var1, uint32_t var2 )
{
m_data.questId = questId;
m_data.msgId = msgId;
m_data.type = type;
m_data.var1 = var1;
m_data.var2 = var2;
};
};
2017-08-08 13:53:47 +02:00
}
#endif /* _QUESTMESSAGE_H */