TrinityCore
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)
 
PlayerSocialLoadFromDB (PreparedQueryResult result, ObjectGuid const &guid)
 

Static Public Member Functions

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

Private Types

typedef std::map< ObjectGuid, PlayerSocialSocialMap
 

Private Member Functions

 SocialMgr ()
 
 ~SocialMgr ()
 

Private Attributes

SocialMap _socialMap
 

Detailed Description

Definition at line 135 of file SocialMgr.h.

Member Typedef Documentation

◆ SocialMap

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

Definition at line 157 of file SocialMgr.h.

Constructor & Destructor Documentation

◆ SocialMgr()

SocialMgr::SocialMgr ( )
inlineprivate

Definition at line 138 of file SocialMgr.h.

◆ ~SocialMgr()

SocialMgr::~SocialMgr ( )
inlineprivate

Definition at line 139 of file SocialMgr.h.

Member Function Documentation

◆ BroadcastToFriendListers()

void SocialMgr::BroadcastToFriendListers ( Player player,
WorldPacket const *  packet 
)

Definition at line 263 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFriendInfo()

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

Definition at line 200 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ instance()

SocialMgr * SocialMgr::instance ( )
static

Definition at line 194 of file SocialMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadFromDB()

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

Definition at line 290 of file SocialMgr.cpp.

+ Here is the call graph for this function:

◆ RemovePlayerSocial()

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

Definition at line 145 of file SocialMgr.h.

◆ SendFriendStatus()

void SocialMgr::SendFriendStatus ( Player player,
FriendsResult  result,
ObjectGuid const &  friendGuid,
bool  broadcast = false 
)

Definition at line 249 of file SocialMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _socialMap

SocialMap SocialMgr::_socialMap
private

Definition at line 158 of file SocialMgr.h.


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