mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
Haha everything broke haha
This commit is contained in:
parent
e24791b59f
commit
e450917cd0
8 changed files with 39 additions and 41 deletions
|
@ -29,10 +29,9 @@
|
|||
|
||||
#include "Script/ScriptManager.h"
|
||||
|
||||
#include "src/servers/Server_Zone/Social/FriendList.h"
|
||||
#include "src/servers/Server_Zone/Actor/Manager/FriendListMgr.h"
|
||||
#include "Social/FriendList.h"
|
||||
|
||||
#include "src/servers/Server_Zone/Script/ScriptManager.h"
|
||||
#include "Script/ScriptManager.h"
|
||||
#include "Inventory/Item.h"
|
||||
|
||||
#include "Inventory/Inventory.h"
|
||||
|
@ -445,9 +444,8 @@ void Core::Entity::Player::setZone( uint32_t zoneId )
|
|||
queuePacket( gcAffPacket );
|
||||
|
||||
//todo: change this to extern, global obj
|
||||
Core::Entity::Social::FriendListMgr fListMgr = {};
|
||||
|
||||
m_friendsListId = fListMgr.fetchPlayerFriendsList( getId() );
|
||||
m_friendsListId = g_friendListMgr.fetchPlayerFriendsList( getId() );
|
||||
|
||||
m_itemLevel = getInventory()->calculateEquippedGearItemLevel();
|
||||
sendItemLevel();
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
#include "Forwards.h"
|
||||
|
||||
|
||||
#include <Server_Common/Common.h>
|
||||
#include <Server_Common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <Server_Zone/Social/FriendList.h>
|
||||
#include <Server_Common/Common.h>
|
||||
#include <common/Common.h>
|
||||
#include <common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <sapphire_zone/Social/FriendList.h>
|
||||
#include <common/Common.h>
|
||||
|
||||
#include "Actor.h"
|
||||
#include "Inventory/Inventory.h"
|
||||
|
|
|
@ -481,14 +481,14 @@ void Core::Network::GameConnection::socialListHandler( const Packets::GamePacket
|
|||
auto playerFriendsList = g_friendListMgr.findGroupById( player.getFriendsListId() );
|
||||
|
||||
// todo: move this garbage else fucking where
|
||||
for ( auto member : playerFriendsList->getMembers() )
|
||||
for ( auto member : playerFriendsList.getMembers() )
|
||||
{
|
||||
// more elegant way to break over list entries pls
|
||||
if ( i == 10 )
|
||||
break;
|
||||
|
||||
g_log.debug( "aaa" + std::to_string( i ) + ": " + member.second.name );
|
||||
listPacket.data().entries[i] = Core::Entity::Social::Group::generatePlayerEntry( member.second );
|
||||
listPacket.data().entries[i] = Core::Social::Group::generatePlayerEntry( member.second );
|
||||
i++;
|
||||
}
|
||||
|
||||
|
@ -692,11 +692,11 @@ void Core::Network::GameConnection::socialReqSendHandler( const Packets::GamePac
|
|||
|
||||
auto recipientFriendsList = g_friendListMgr.findGroupById( pRecipient->getFriendsListId() );
|
||||
|
||||
auto senderResultPacket = recipientFriendsList->inviteMember( player.getAsPlayer(), pRecipient, player.getId(), pRecipient->getId() );
|
||||
auto senderResultPacket = recipientFriendsList.inviteMember( player.getAsPlayer(), pRecipient, player.getId(), pRecipient->getId() );
|
||||
|
||||
player.queuePacket( senderResultPacket );
|
||||
|
||||
if ( recipientFriendsList->isFriendList() )
|
||||
if ( recipientFriendsList.isFriendList() )
|
||||
{
|
||||
g_log.debug( "he HAA HAAA" );
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
#include <cassert>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <src/servers/Server_Common/Common.h>
|
||||
#include <common/Common.h>
|
||||
|
||||
#include <Server_Common/Network/PacketDef/Ipcs.h>
|
||||
#include <Server_Common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <src/servers/Server_Common/Logging/Logger.h>
|
||||
#include <Server_Zone/Actor/Actor.h>
|
||||
#include <Server_Zone/Actor/Player.h>
|
||||
#include <Server_Zone/ServerZone.h>
|
||||
#include <Server_Common/Network/GamePacketNew.h>
|
||||
#include <common/Network/PacketDef/Ipcs.h>
|
||||
#include <common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <common/Logging/Logger.h>
|
||||
#include <sapphire_zone/Actor/Actor.h>
|
||||
#include <sapphire_zone/Actor/Player.h>
|
||||
#include <sapphire_zone/ServerZone.h>
|
||||
#include <common/Network/GamePacketNew.h>
|
||||
#include "FriendList.h"
|
||||
#include "Group.h"
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#ifndef _FRIENDLIST_H
|
||||
#define _FRIENDLIST_H
|
||||
|
||||
#include <src/servers/Server_Common/Common.h>
|
||||
#include <Server_Common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <Server_Common/Network/GamePacketNew.h>
|
||||
#include <Server_Common/Forwards.h>
|
||||
#include <Server_Zone/Social/Group.h>
|
||||
#include <Server_Zone/Forwards.h>
|
||||
#include <common/Common.h>
|
||||
#include <common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <common/Network/GamePacketNew.h>
|
||||
#include <common/Forwards.h>
|
||||
#include <sapphire_zone/Social/Group.h>
|
||||
#include <sapphire_zone/Forwards.h>
|
||||
#include <boost/enable_shared_from_this.hpp>
|
||||
#include <set>
|
||||
#include <cstdint>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#include <cassert>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <Server_Common/Logging/Logger.h>
|
||||
#include <common/Logging/Logger.h>
|
||||
|
||||
#include <Server_Zone/Session.h>
|
||||
#include <Server_Common/Network/PacketDef/Ipcs.h>
|
||||
#include <Server_Common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <Server_Zone/Actor/Actor.h>
|
||||
#include <Server_Zone/Actor/Player.h>
|
||||
#include <Server_Zone/ServerZone.h>
|
||||
#include <Server_Zone/Zone/Zone.h>
|
||||
#include <Server_Common/Network/GamePacketNew.h>
|
||||
#include <sapphire_zone/Session.h>
|
||||
#include <common/Network/PacketDef/Ipcs.h>
|
||||
#include <common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <sapphire_zone/Actor/Actor.h>
|
||||
#include <sapphire_zone/Actor/Player.h>
|
||||
#include <sapphire_zone/ServerZone.h>
|
||||
#include <sapphire_zone/Zone/Zone.h>
|
||||
#include <common/Network/GamePacketNew.h>
|
||||
#include "Group.h"
|
||||
|
||||
extern Core::ServerZone g_serverZone;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef _GROUP_H
|
||||
#define _GROUP_H
|
||||
|
||||
#include <Server_Common/Common.h>
|
||||
#include <Server_Common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <Server_Common/Forwards.h>
|
||||
#include <Server_Zone/Forwards.h>
|
||||
#include <common/Common.h>
|
||||
#include <common/Network/PacketDef/Zone/ServerZoneDef.h>
|
||||
#include <common/Forwards.h>
|
||||
#include <sapphire_zone/Forwards.h>
|
||||
#include <boost/enable_shared_from_this.hpp>
|
||||
#include <set>
|
||||
#include <cstdint>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <cstdint>
|
||||
|
||||
#include <boost/enable_shared_from_this.hpp>
|
||||
#include <Server_Zone/Forwards.h>
|
||||
#include <sapphire_zone/Forwards.h>
|
||||
#include <Social/Group.h>
|
||||
|
||||
namespace Core {
|
||||
|
|
Loading…
Add table
Reference in a new issue