2021-11-27 00:53:57 +01:00
|
|
|
#ifndef _QUESTMESSAGE_H
|
|
|
|
#define _QUESTMESSAGE_H
|
|
|
|
|
|
|
|
#include <Network/GamePacket.h>
|
|
|
|
#include "Forwards.h"
|
|
|
|
|
|
|
|
namespace Sapphire::Network::Packets::WorldPackets::Server
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Packet to display a quest specific info message.
|
|
|
|
*/
|
|
|
|
class Notice2Packet : public ZoneChannelPacket< FFXIVIpcNotice2 >
|
|
|
|
{
|
|
|
|
public:
|
2021-12-21 13:48:24 +01:00
|
|
|
Notice2Packet( uint32_t entityId, uint32_t questId, int8_t msgId, uint8_t numOfArgs = 0, uint32_t var1 = 0, uint32_t var2 = 0 ) :
|
|
|
|
ZoneChannelPacket< FFXIVIpcNotice2 >( entityId, entityId )
|
2021-11-27 00:53:57 +01:00
|
|
|
{
|
2021-12-21 13:48:24 +01:00
|
|
|
initialize( questId, msgId, numOfArgs, var1, var2 );
|
2021-11-27 00:53:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
2021-12-21 13:48:24 +01:00
|
|
|
void initialize( uint32_t questId, int8_t msgId, uint8_t numOfArgs, uint32_t var1, uint32_t var2 )
|
2021-11-27 00:53:57 +01:00
|
|
|
{
|
|
|
|
m_data.handlerId = questId;
|
|
|
|
m_data.noticeId = msgId;
|
|
|
|
// todo: not correct
|
2021-12-21 13:48:24 +01:00
|
|
|
m_data.numOfArgs = numOfArgs;
|
2021-11-27 00:53:57 +01:00
|
|
|
m_data.args[0] = var1;
|
|
|
|
m_data.args[1] = var2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _QUESTMESSAGE_H */
|