mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
minor refactoring
This commit is contained in:
parent
9ab7d5c68a
commit
b8871519fe
4 changed files with 5 additions and 5 deletions
|
@ -66,7 +66,7 @@ struct FFXIVIpcEventHandlerReturn : FFXIVIpcBasePacket< ReturnEventHandler >
|
|||
/* 000A */ char pad_000A[2];
|
||||
/* 000C */ uint16_t param3;
|
||||
/* 000E */ char pad_000E[2];
|
||||
/* 0010 */ uint16_t tradeQuantity;
|
||||
/* 0010 */ uint16_t param4;
|
||||
};
|
||||
|
||||
struct FFXIVIpcEnterTerritoryHandler : FFXIVIpcBasePacket< EnterTeriEventHandler >
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
{
|
||||
//player.playGilShop( result.eventId, HIDE_HOTBAR | NO_DEFAULT_CAMERA, shopInteractionCallback );
|
||||
|
||||
player.sendDebug("got tradeQuantity: " + std::to_string( result.tradeQuantity ) );
|
||||
player.sendDebug("got tradeQuantity: " + std::to_string( result.param4 ) );
|
||||
player.playScene( result.eventId, 10, SCENE_FLAGS, 0, 0, shopInteractionCallback );
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Core {
|
|||
uint16_t param1;
|
||||
uint16_t param2;
|
||||
uint16_t param3;
|
||||
uint16_t tradeQuantity;
|
||||
uint16_t param4;
|
||||
};
|
||||
|
||||
class EventHandler
|
||||
|
|
|
@ -203,7 +203,7 @@ void Core::Network::GameConnection::eventHandlerReturn( const Packets::FFXIVARR_
|
|||
const auto& param1 = packet.data().param1;
|
||||
const auto& param2 = packet.data().param2;
|
||||
const auto& param3 = packet.data().param3;
|
||||
const auto& tradeQuantity = packet.data().tradeQuantity;
|
||||
const auto& param4 = packet.data().param4;
|
||||
|
||||
std::string eventName = Event::getEventName( eventId );
|
||||
|
||||
|
@ -229,7 +229,7 @@ void Core::Network::GameConnection::eventHandlerReturn( const Packets::FFXIVARR_
|
|||
result.param1 = param1;
|
||||
result.param2 = param2;
|
||||
result.param3 = param3;
|
||||
result.tradeQuantity = tradeQuantity;
|
||||
result.param4 = param4;
|
||||
eventCallback( player, result );
|
||||
}
|
||||
// we might have a scene chain callback instead so check for that too
|
||||
|
|
Loading…
Add table
Reference in a new issue