1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 08:07:46 +00:00
sapphire/src/world/Network/PacketWrappers/EventFinishPacket.h

40 lines
861 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _EVENTFINISH_H
#define _EVENTFINISH_H
2019-03-08 15:34:38 +01:00
#include <Network/GamePacket.h>
2017-08-08 13:53:47 +02:00
namespace Sapphire::Network::Packets::Server
2017-08-08 13:53:47 +02:00
{
2018-10-28 21:53:21 +01:00
/**
* @brief The packet sent to finish an event.
*/
class EventFinishPacket : public ZoneChannelPacket< FFXIVIpcEventFinish >
{
2018-10-28 21:53:21 +01:00
public:
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
2018-10-28 21:53:21 +01:00
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;
};
};
2017-08-08 13:53:47 +02:00
}
#endif /*_EVENTFINISH_H*/