mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 15:47:46 +00:00
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
![]() |
#include <Common.h>
|
||
|
#include <Network/CommonNetwork.h>
|
||
|
#include <Network/GamePacket.h>
|
||
|
|
||
|
#include <Network/PacketContainer.h>
|
||
|
#include <Exd/ExdData.h>
|
||
|
#include <Service.h>
|
||
|
#include <Network/PacketDef/Zone/ClientZoneDef.h>
|
||
|
|
||
|
#include "Network/GameConnection.h"
|
||
|
|
||
|
#include "Session.h"
|
||
|
#include "Actor/Player.h"
|
||
|
#include "Manager/LinkshellMgr.h"
|
||
|
|
||
|
using namespace Sapphire::Common;
|
||
|
using namespace Sapphire::Network::Packets;
|
||
|
using namespace Sapphire::Network::Packets::WorldPackets;
|
||
|
using namespace Sapphire::World::Manager;
|
||
|
|
||
|
void Sapphire::Network::GameConnection::linkshellListHandler( const Packets::FFXIVARR_PACKET_RAW& inPacket, Entity::Player& player )
|
||
|
{
|
||
|
auto& lsMgr = Common::Service< LinkshellMgr >::ref();
|
||
|
lsMgr.sendLinkshellList( player );
|
||
|
}
|
||
|
|
||
|
void Sapphire::Network::GameConnection::linkshellJoinHandler( const Packets::FFXIVARR_PACKET_RAW& inPacket, Entity::Player& player )
|
||
|
{
|
||
|
const auto lsJoinPacket = ZoneChannelPacket< Client::FFXIVIpcLinkshellJoin >( inPacket );
|
||
|
auto& lsMgr = Common::Service< LinkshellMgr >::ref();
|
||
|
auto charName = std::string( lsJoinPacket.data().MemberCharacterName );
|
||
|
lsMgr.invitePlayer( charName, lsJoinPacket.data().LinkshellID );
|
||
|
}
|