2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTFINISH_H
|
|
|
|
#define _EVENTFINISH_H
|
|
|
|
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Network/GamePacketNew.h>
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Network {
|
|
|
|
namespace Packets {
|
|
|
|
namespace Server {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The packet sent to finish an event.
|
|
|
|
*/
|
2018-08-29 21:40:59 +02:00
|
|
|
class EventFinishPacket :
|
|
|
|
public ZoneChannelPacket< FFXIVIpcEventFinish >
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
public:
|
2018-08-29 21:40:59 +02:00
|
|
|
EventFinishPacket( uint32_t playerId,
|
|
|
|
uint32_t eventId,
|
|
|
|
uint8_t param1,
|
|
|
|
uint32_t param3 ) :
|
|
|
|
ZoneChannelPacket< FFXIVIpcEventFinish >( playerId, playerId )
|
|
|
|
{
|
|
|
|
initialize( eventId, param1, param3 );
|
|
|
|
};
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
private:
|
2018-08-29 21:40:59 +02:00
|
|
|
void initialize( uint32_t eventId,
|
|
|
|
uint8_t param1,
|
|
|
|
uint32_t param3 )
|
|
|
|
{
|
|
|
|
m_data.eventId = eventId;
|
|
|
|
m_data.param1 = param1;
|
|
|
|
m_data.param2 = 1;
|
|
|
|
m_data.param3 = param3;
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
};
|
2017-08-08 13:53:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-18 12:36:52 +01:00
|
|
|
#endif /*_EVENTFINISH_H*/
|