2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTPLAY_H
|
|
|
|
#define _EVENTPLAY_H
|
|
|
|
|
2017-08-19 00:18:40 +02:00
|
|
|
#include <src/servers/Server_Common/Network/GamePacketNew.h>
|
2017-08-18 17:16:15 +02:00
|
|
|
#include "src/servers/Server_Zone/Forwards.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Network {
|
|
|
|
namespace Packets {
|
|
|
|
namespace Server {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The packet sent to play an event.
|
|
|
|
*/
|
2017-08-20 22:31:23 +02:00
|
|
|
class EventPlayPacket : public GamePacketNew< FFXIVIpcEventPlay, ServerZoneIpcType >
|
2017-08-08 13:53:47 +02: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 ) :
|
2017-08-20 22:31:23 +02:00
|
|
|
GamePacketNew< FFXIVIpcEventPlay, ServerZoneIpcType >( playerId, playerId )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /*_EVENTPLAY_H*/
|