2017-08-08 13:53:47 +02:00
|
|
|
#ifndef _ACTORCONTROL143_H
|
|
|
|
#define _ACTORCONTROL143_H
|
|
|
|
|
2019-03-08 15:34:38 +01:00
|
|
|
#include <Network/GamePacket.h>
|
2018-03-06 22:22:19 +01:00
|
|
|
#include <Network/PacketDef/Zone/ServerZoneDef.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 Ping response packet.
|
|
|
|
*/
|
2019-10-09 18:14:53 +02:00
|
|
|
class ActorControlSelfPacket : public ZoneChannelPacket< FFXIVIpcActorControlSelf >
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
2019-10-09 18:14:53 +02:00
|
|
|
ActorControlSelfPacket( uint32_t actorId,
|
|
|
|
uint16_t category,
|
|
|
|
uint32_t param1 = 0,
|
|
|
|
uint32_t param2 = 0,
|
|
|
|
uint32_t param3 = 0,
|
|
|
|
uint32_t param4 = 0,
|
|
|
|
uint32_t param5 = 0,
|
2021-08-16 17:18:29 +09:00
|
|
|
uint32_t param6 = 0 ) :
|
2019-10-09 18:14:53 +02:00
|
|
|
ZoneChannelPacket< FFXIVIpcActorControlSelf >( actorId, actorId )
|
2018-10-28 21:53:21 +01:00
|
|
|
{
|
2021-08-16 17:18:29 +09:00
|
|
|
initialize( category, param1, param2, param3, param4, param5, param6 );
|
2018-10-28 21:53:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize( uint16_t category, uint32_t param1, uint32_t param2, uint32_t param3, uint32_t param4,
|
2021-08-16 17:18:29 +09:00
|
|
|
uint32_t param5, uint32_t param6 )
|
2018-10-28 21:53:21 +01:00
|
|
|
{
|
|
|
|
m_data.padding = 0;
|
|
|
|
m_data.category = category;
|
|
|
|
m_data.param1 = param1;
|
|
|
|
m_data.param2 = param2;
|
|
|
|
m_data.param3 = param3;
|
|
|
|
m_data.param4 = param4;
|
|
|
|
m_data.param5 = param5;
|
2021-08-16 17:18:29 +09:00
|
|
|
m_data.param6 = param6;
|
2018-10-28 21:53:21 +01:00
|
|
|
};
|
2018-08-29 21:40:59 +02:00
|
|
|
};
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
template< typename... Args >
|
2019-10-09 18:42:25 +02:00
|
|
|
std::shared_ptr< ActorControlSelfPacket > makeActorControlSelf( Args... args )
|
2018-10-28 21:53:21 +01:00
|
|
|
{
|
2019-10-09 18:14:53 +02:00
|
|
|
return std::make_shared< ActorControlSelfPacket >( args... );
|
2018-10-28 21:53:21 +01:00
|
|
|
}
|
2018-08-28 19:05:52 +02:00
|
|
|
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
|
2017-12-18 12:36:52 +01:00
|
|
|
#endif /*_ACTORCONTROL143_H*/
|