2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _EVENTSTART_H
|
|
|
|
#define _EVENTSTART_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 start an event.
|
|
|
|
*/
|
2017-08-20 22:31:23 +02:00
|
|
|
class EventStartPacket : public GamePacketNew< FFXIVIpcEventStart, ServerZoneIpcType >
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
EventStartPacket( uint32_t playerId,
|
|
|
|
uint64_t actorId,
|
|
|
|
uint32_t eventId,
|
|
|
|
uint8_t param1 = 0,
|
|
|
|
uint8_t param2 = 0,
|
|
|
|
uint32_t param3 = 0 ) :
|
2017-08-20 22:31:23 +02:00
|
|
|
GamePacketNew< FFXIVIpcEventStart, ServerZoneIpcType >( playerId, playerId )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
initialize( actorId, eventId, param1, param2, param3 );
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( uint64_t actorId,
|
|
|
|
uint32_t eventId,
|
|
|
|
uint8_t param1,
|
|
|
|
uint8_t param2,
|
|
|
|
uint32_t param3 )
|
|
|
|
{
|
|
|
|
m_data.actorId = actorId;
|
|
|
|
m_data.eventId = eventId;
|
|
|
|
m_data.param1 = param1;
|
|
|
|
m_data.param2 = param2;
|
|
|
|
m_data.param3 = param3;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /*_EVENTSTART_H*/
|