1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 06:27:45 +00:00
sapphire/src/servers/Server_Zone/Network/PacketWrappers/EventPlayPacket.h

55 lines
1.3 KiB
C
Raw Normal View History

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>
#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-11-21 18:43:09 +01:00
class EventPlayPacket : public ZoneChannelPacket< FFXIVIpcEventPlay >
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-11-21 18:43:09 +01:00
ZoneChannelPacket< FFXIVIpcEventPlay >( 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*/