mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
44 lines
872 B
C++
44 lines
872 B
C++
#ifndef _EVENTFINISH_H
|
|
#define _EVENTFINISH_H
|
|
|
|
#include <Network/GamePacketNew.h>
|
|
|
|
namespace Core {
|
|
namespace Network {
|
|
namespace Packets {
|
|
namespace Server {
|
|
|
|
/**
|
|
* @brief The packet sent to finish an event.
|
|
*/
|
|
class EventFinishPacket : public ZoneChannelPacket< FFXIVIpcEventFinish >
|
|
{
|
|
public:
|
|
EventFinishPacket( uint32_t playerId,
|
|
uint32_t eventId,
|
|
uint8_t param1,
|
|
uint32_t param3 ) :
|
|
ZoneChannelPacket< FFXIVIpcEventFinish >( playerId, playerId )
|
|
{
|
|
initialize( eventId, param1, param3 );
|
|
};
|
|
|
|
private:
|
|
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;
|
|
|
|
};
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /*_EVENTFINISH_H*/
|