2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTSTART_H
|
|
|
|
#define _EVENTSTART_H
|
|
|
|
|
2019-03-08 15:34:38 +01:00
|
|
|
#include <Network/GamePacket.h>
|
2017-12-08 23:27:59 +01:00
|
|
|
#include "Forwards.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
namespace Sapphire::Network::Packets::WorldPackets::Server
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
/**
|
|
|
|
* @brief The packet sent to start an event.
|
|
|
|
*/
|
|
|
|
class EventStartPacket : public ZoneChannelPacket< FFXIVIpcEventStart >
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
|
|
|
EventStartPacket( uint32_t playerId,
|
2021-11-27 00:53:57 +01:00
|
|
|
uint64_t targetId,
|
2018-10-28 21:53:21 +01:00
|
|
|
uint32_t eventId,
|
|
|
|
uint8_t param1 = 0,
|
|
|
|
uint8_t param2 = 0,
|
|
|
|
uint32_t param3 = 0 ) :
|
|
|
|
ZoneChannelPacket< FFXIVIpcEventStart >( playerId, playerId )
|
|
|
|
{
|
2021-11-27 00:53:57 +01:00
|
|
|
initialize( targetId, eventId, param1, param2, param3 );
|
2018-10-28 21:53:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( uint64_t actorId,
|
|
|
|
uint32_t eventId,
|
|
|
|
uint8_t param1,
|
|
|
|
uint8_t param2,
|
|
|
|
uint32_t param3 )
|
|
|
|
{
|
2021-11-27 00:53:57 +01:00
|
|
|
m_data.targetId = actorId;
|
|
|
|
m_data.handlerId = eventId;
|
|
|
|
m_data.event = param1;
|
|
|
|
m_data.flags = param2;
|
|
|
|
m_data.eventArg = param3;
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-10-28 21:53:21 +01: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 /*_EVENTSTART_H*/
|