TrinityCore
Loading...
Searching...
No Matches
SocialMgr Class Reference

#include <SocialMgr.h>

Public Member Functions

void RemovePlayerSocial (ObjectGuid const &guid)
 
void SendFriendStatus (Player *player, FriendsResult result, ObjectGuid const &friendGuid, bool broadcast=false)
 
void BroadcastToFriendListers (Player *player, WorldPacket const *packet)
 
PlayerSocial * LoadFromDB (PreparedQueryResult result, ObjectGuid const &guid)
 

Static Public Member Functions

static SocialMgr * instance ()
 
static void GetFriendInfo (Player *player, ObjectGuid const &friendGUID, FriendInfo &friendInfo)
 

Private Types

typedef std::map< ObjectGuid, PlayerSocial > SocialMap
 

Private Member Functions

 SocialMgr ()
 
 ~SocialMgr ()
 

Private Attributes

SocialMap _socialMap
 

Detailed Description

Definition at line 133 of file SocialMgr.h.

Member Typedef Documentation

◆ SocialMap

typedef std::map<ObjectGuid, PlayerSocial> SocialMgr::SocialMap
private

Definition at line 155 of file SocialMgr.h.

Constructor & Destructor Documentation

◆ SocialMgr()

SocialMgr::SocialMgr ( )
inlineprivate

Definition at line 136 of file SocialMgr.h.

◆ ~SocialMgr()

SocialMgr::~SocialMgr ( )
inlineprivate

Definition at line 137 of file SocialMgr.h.

Member Function Documentation

◆ BroadcastToFriendListers()

◆ GetFriendInfo()

◆ instance()

SocialMgr * SocialMgr::instance ( )
static

Definition at line 184 of file SocialMgr.cpp.

References instance().

Referenced by instance().

◆ LoadFromDB()

PlayerSocial * SocialMgr::LoadFromDB ( PreparedQueryResult  result,
ObjectGuid const &  guid 
)

◆ RemovePlayerSocial()

void SocialMgr::RemovePlayerSocial ( ObjectGuid const &  guid)
inline

Definition at line 143 of file SocialMgr.h.

References _socialMap.

◆ SendFriendStatus()

Member Data Documentation

◆ _socialMap

SocialMap SocialMgr::_socialMap
private

Definition at line 156 of file SocialMgr.h.

Referenced by BroadcastToFriendListers(), LoadFromDB(), and RemovePlayerSocial().


The documentation for this class was generated from the following files: