1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

rename InitUI -> PlayerSetup, AddStatusEffect -> EffectResult

This commit is contained in:
NotAdam 2019-06-20 14:48:24 +10:00
parent 4f900b9093
commit 6b44dc9a6e
12 changed files with 19 additions and 19 deletions

View file

@ -51,7 +51,7 @@ namespace Sapphire::Network::Packets
ActorFreeSpawn = 0x0191, ActorFreeSpawn = 0x0191,
InitZone = 0x019A, InitZone = 0x019A,
AddStatusEffect = 0x0141, EffectResult = 0x0141,
ActorControl142 = 0x0142, ActorControl142 = 0x0142,
ActorControl143 = 0x0143, ActorControl143 = 0x0143,
ActorControl144 = 0x0144, ActorControl144 = 0x0144,
@ -137,7 +137,7 @@ namespace Sapphire::Network::Packets
ObjectDespawn = 0x0182, // updated 4.5 ObjectDespawn = 0x0182, // updated 4.5
UpdateClassInfo = 0x0183, // updated 4.5 UpdateClassInfo = 0x0183, // updated 4.5
SilentSetClassJob = 0x0184, // updated 4.5 - seems to be the case, not sure if it's actually used for anything SilentSetClassJob = 0x0184, // updated 4.5 - seems to be the case, not sure if it's actually used for anything
InitUI = 0x0185, // updated 4.5 PlayerSetup = 0x0185, // updated 4.5
PlayerStats = 0x0186, // updated 4.5 PlayerStats = 0x0186, // updated 4.5
ActorOwner = 0x0187, // updated 4.5 ActorOwner = 0x0187, // updated 4.5
PlayerStateFlags = 0x0188, // updated 4.5 PlayerStateFlags = 0x0188, // updated 4.5

View file

@ -305,7 +305,7 @@ namespace Sapphire::Network::Packets::Server
* Structural representation of the packet sent by the server * Structural representation of the packet sent by the server
* add a status effect * add a status effect
*/ */
struct FFXIVIpcAddStatusEffect : FFXIVIpcBasePacket< AddStatusEffect > struct FFXIVIpcEffectResult : FFXIVIpcBasePacket< EffectResult >
{ {
uint32_t unknown; uint32_t unknown;
uint32_t actor_id; uint32_t actor_id;
@ -793,7 +793,7 @@ namespace Sapphire::Network::Packets::Server
* Structural representation of the packet sent by the server to initialize * Structural representation of the packet sent by the server to initialize
* the client UI upon initial connection. * the client UI upon initial connection.
*/ */
struct FFXIVIpcInitUI : FFXIVIpcBasePacket< InitUI > struct FFXIVIpcPlayerSetup : FFXIVIpcBasePacket< PlayerSetup >
{ {
// plain C types for a bit until the packet is actually fixed. // plain C types for a bit until the packet is actually fixed.
// makes conversion between different editors easier. // makes conversion between different editors easier.

View file

@ -457,7 +457,7 @@ void Sapphire::Entity::Chara::addStatusEffect( StatusEffect::StatusEffectPtr pEf
pEffect->applyStatus(); pEffect->applyStatus();
m_statusEffectMap[ nextSlot ] = pEffect; m_statusEffectMap[ nextSlot ] = pEffect;
auto statusEffectAdd = makeZonePacket< FFXIVIpcAddStatusEffect >( getId() ); auto statusEffectAdd = makeZonePacket< FFXIVIpcEffectResult >( getId() );
statusEffectAdd->data().actor_id = pEffect->getTargetActorId(); statusEffectAdd->data().actor_id = pEffect->getTargetActorId();
statusEffectAdd->data().actor_id1 = pEffect->getSrcActorId(); statusEffectAdd->data().actor_id1 = pEffect->getSrcActorId();

View file

@ -25,7 +25,7 @@
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"
#include "Network/PacketWrappers/ActorControlPacket144.h" #include "Network/PacketWrappers/ActorControlPacket144.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h"
#include "Network/PacketWrappers/ChatPacket.h" #include "Network/PacketWrappers/ChatPacket.h"
#include "Network/PacketWrappers/ModelEquipPacket.h" #include "Network/PacketWrappers/ModelEquipPacket.h"
@ -1717,7 +1717,7 @@ void Sapphire::Entity::Player::sendZonePackets()
} }
queuePacket( contentFinderList ); queuePacket( contentFinderList );
queuePacket( std::make_shared< InitUIPacket >( *this ) ); queuePacket( std::make_shared< PlayerSetupPacket >( *this ) );
auto classInfoPacket = makeZonePacket< FFXIVIpcPlayerClassInfo >( getId() ); auto classInfoPacket = makeZonePacket< FFXIVIpcPlayerClassInfo >( getId() );
classInfoPacket->data().classId = static_cast< uint8_t >( getClass() ); classInfoPacket->data().classId = static_cast< uint8_t >( getClass() );

View file

@ -4,7 +4,7 @@
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h"
#include "Network/PacketWrappers/EventStartPacket.h" #include "Network/PacketWrappers/EventStartPacket.h"
#include "Network/PacketWrappers/EventPlayPacket.h" #include "Network/PacketWrappers/EventPlayPacket.h"

View file

@ -10,7 +10,7 @@
#include <Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Manager/TerritoryMgr.h" #include "Manager/TerritoryMgr.h"
#include "Territory/Zone.h" #include "Territory/Zone.h"

View file

@ -18,7 +18,7 @@
#include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h"
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Network/PacketWrappers/PlayerSpawnPacket.h" #include "Network/PacketWrappers/PlayerSpawnPacket.h"
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Script/ScriptMgr.h" #include "Script/ScriptMgr.h"
@ -237,7 +237,7 @@ void Sapphire::World::Manager::DebugCommandMgr::set( char* data, Entity::Player&
else if( subCommand == "discovery_reset" ) else if( subCommand == "discovery_reset" )
{ {
player.resetDiscovery(); player.resetDiscovery();
player.queuePacket( std::make_shared< InitUIPacket >( player ) ); player.queuePacket( std::make_shared< PlayerSetupPacket >( player ) );
} }
else if( subCommand == "classjob" ) else if( subCommand == "classjob" )
{ {

View file

@ -10,7 +10,7 @@
#include "Territory/Zone.h" #include "Territory/Zone.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Manager/DebugCommandMgr.h" #include "Manager/DebugCommandMgr.h"

View file

@ -15,7 +15,7 @@
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/ExaminePacket.h" #include "Network/PacketWrappers/ExaminePacket.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Network/PacketWrappers/PingPacket.h" #include "Network/PacketWrappers/PingPacket.h"
#include "Network/PacketWrappers/MoveActorPacket.h" #include "Network/PacketWrappers/MoveActorPacket.h"
#include "Network/PacketWrappers/ChatPacket.h" #include "Network/PacketWrappers/ChatPacket.h"

View file

@ -17,7 +17,7 @@
#include "Territory/Zone.h" #include "Territory/Zone.h"
#include "Territory/InstanceContent.h" #include "Territory/InstanceContent.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Network/PacketWrappers/PingPacket.h" #include "Network/PacketWrappers/PingPacket.h"
#include "Network/PacketWrappers/MoveActorPacket.h" #include "Network/PacketWrappers/MoveActorPacket.h"
#include "Network/PacketWrappers/ChatPacket.h" #include "Network/PacketWrappers/ChatPacket.h"

View file

@ -21,7 +21,7 @@
#include "Territory/ZonePosition.h" #include "Territory/ZonePosition.h"
#include "Territory/House.h" #include "Territory/House.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/PlayerSetupPacket.h"
#include "Network/PacketWrappers/PingPacket.h" #include "Network/PacketWrappers/PingPacket.h"
#include "Network/PacketWrappers/MoveActorPacket.h" #include "Network/PacketWrappers/MoveActorPacket.h"
#include "Network/PacketWrappers/ChatPacket.h" #include "Network/PacketWrappers/ChatPacket.h"

View file

@ -10,14 +10,14 @@ namespace Sapphire::Network::Packets::Server
{ {
/** /**
* @brief The Client UI Initialization packet. This must be sent to the client * @brief The Client Player Initialization packet. This must be sent to the client
* once upon connection to configure the UI. * once upon connection to configure the UI.
*/ */
class InitUIPacket : public ZoneChannelPacket< FFXIVIpcInitUI > class PlayerSetupPacket : public ZoneChannelPacket< FFXIVIpcPlayerSetup >
{ {
public: public:
InitUIPacket( Entity::Player& player ) : PlayerSetupPacket( Entity::Player& player ) :
ZoneChannelPacket< FFXIVIpcInitUI >( player.getId(), player.getId() ) ZoneChannelPacket< FFXIVIpcPlayerSetup >( player.getId(), player.getId() )
{ {
initialize( player ); initialize( player );
}; };