mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 07:07:45 +00:00
42 lines
918 B
C
42 lines
918 B
C
![]() |
#ifndef _QUESTMESSAGE_H
|
||
|
#define _QUESTMESSAGE_H
|
||
|
|
||
|
#include <Server_Common/GamePacketNew.h>
|
||
|
#include "Player.h"
|
||
|
#include "Forwards.h"
|
||
|
|
||
|
namespace Core {
|
||
|
namespace Network {
|
||
|
namespace Packets {
|
||
|
namespace Server {
|
||
|
|
||
|
/**
|
||
|
* @brief The Ping response packet.
|
||
|
*/
|
||
|
class QuestMessagePacket :
|
||
|
public GamePacketNew< FFXIVIpcQuestMessage >
|
||
|
{
|
||
|
public:
|
||
|
QuestMessagePacket( Entity::ActorPtr pActor, uint32_t questId, int8_t msgId, uint8_t type = 0, uint32_t var1 = 0, uint32_t var2 = 0 ) :
|
||
|
GamePacketNew< 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;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif /* _QUESTMESSAGE_H */
|