2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTPLAY_H
|
|
|
|
#define _EVENTPLAY_H
|
|
|
|
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Network/GamePacketNew.h>
|
2017-12-08 23:27:59 +01:00
|
|
|
#include "Forwards.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-11-29 16:55:48 +01: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 play an event.
|
|
|
|
*/
|
|
|
|
class EventPlayPacket : public ZoneChannelPacket< FFXIVIpcEventPlay >
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
|
|
|
EventPlayPacket( uint32_t playerId,
|
|
|
|
uint64_t actorId,
|
|
|
|
uint32_t eventId,
|
|
|
|
uint16_t scene,
|
|
|
|
uint32_t flags,
|
|
|
|
uint8_t param3,
|
|
|
|
uint32_t param4 = 0,
|
|
|
|
uint32_t param5 = 0 ) :
|
|
|
|
ZoneChannelPacket< FFXIVIpcEventPlay >( playerId, playerId )
|
|
|
|
{
|
|
|
|
initialize( actorId, eventId, scene, flags, param3, param4, param5 );
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( uint64_t actorId,
|
|
|
|
uint32_t eventId,
|
|
|
|
uint16_t scene,
|
|
|
|
uint32_t flags,
|
|
|
|
uint8_t param3,
|
|
|
|
uint32_t param4,
|
|
|
|
uint32_t param5 )
|
|
|
|
{
|
|
|
|
m_data.actorId = actorId;
|
|
|
|
m_data.eventId = eventId;
|
|
|
|
m_data.scene = scene;
|
|
|
|
m_data.flags = flags;
|
|
|
|
m_data.param3 = param3;
|
|
|
|
m_data.param4 = param4;
|
|
|
|
m_data.param5 = param5;
|
|
|
|
};
|
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 /*_EVENTPLAY_H*/
|