1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 08:27:46 +00:00
sapphire/src/servers/sapphire_zone/Network/PacketWrappers/EventStartPacket.h

45 lines
1.1 KiB
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _EVENTSTART_H
#define _EVENTSTART_H
2018-03-06 22:22:19 +01:00
#include <Network/GamePacketNew.h>
#include "Forwards.h"
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
namespace Core::Network::Packets::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-10-28 21:53:21 +01:00
public:
EventStartPacket( uint32_t playerId,
uint64_t actorId,
uint32_t eventId,
uint8_t param1 = 0,
uint8_t param2 = 0,
uint32_t param3 = 0 ) :
ZoneChannelPacket< FFXIVIpcEventStart >( playerId, playerId )
{
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;
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
};
};
2017-08-08 13:53:47 +02:00
}
#endif /*_EVENTSTART_H*/