19 #ifndef __TRINITY_SOCIALMGR_H
20 #define __TRINITY_SOCIALMGR_H
62 Flags(flags), Area(0), Level(0), Class(0), Note(note)
100 #define SOCIALMGR_FRIEND_LIMIT 50u
101 #define SOCIALMGR_IGNORE_LIMIT 50u
111 void SetFriendNote(
ObjectGuid const& guid, std::string
const& note);
160 #define sSocialMgr SocialMgr::instance()
ObjectGuid const & GetPlayerGUID() const
Definition: SocialMgr.h:120
Definition: SocialMgr.h:97
FriendsResult
Results of friend related commands.
Definition: SocialMgr.h:67
Definition: SocialMgr.h:93
Definition: SocialMgr.h:42
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
Definition: SocialMgr.h:94
Definition: SocialMgr.h:82
Definition: SocialMgr.h:77
SocialFlag
Definition: SocialMgr.h:38
std::string Note
Definition: SocialMgr.h:56
Definition: SocialMgr.h:48
SocialMap _socialMap
Definition: SocialMgr.h:157
void SendFriendStatus(Player *player, FriendsResult result, ObjectGuid const &friendGuid, bool broadcast=false)
Definition: SocialMgr.cpp:214
Definition: SocialMgr.h:35
Definition: SocialMgr.h:81
Definition: SocialMgr.h:34
Definition: SocialMgr.h:41
Definition: SocialMgr.h:134
void BroadcastToFriendListers(Player *player, WorldPacket const *packet)
Definition: SocialMgr.cpp:228
Definition: SocialMgr.h:71
Definition: SocialMgr.h:78
FriendStatus Status
Definition: SocialMgr.h:51
Definition: SocialMgr.h:83
std::map< ObjectGuid, PlayerSocial > SocialMap
Definition: SocialMgr.h:156
FriendInfo(ObjectGuid const &accountGuid, uint8 flags, std::string const ¬e)
Definition: SocialMgr.h:61
Definition: SocialMgr.h:75
void RemovePlayerSocial(ObjectGuid const &guid)
Definition: SocialMgr.h:144
SocialMgr()
Definition: SocialMgr.h:137
Definition: SocialMgr.h:87
Definition: SocialMgr.h:96
Definition: SocialMgr.h:95
~SocialMgr()
Definition: SocialMgr.h:138
Definition: SocialMgr.h:103
uint8 Level
Definition: SocialMgr.h:54
Definition: SocialMgr.h:74
Definition: SocialMgr.h:45
Definition: SocialMgr.h:73
Definition: SocialMgr.h:90
uint32_t uint32
Definition: Define.h:150
static SocialMgr * instance()
Definition: SocialMgr.cpp:164
Definition: SocialMgr.h:31
uint8 Flags
Definition: SocialMgr.h:52
void SetPlayerGUID(ObjectGuid const &guid)
Definition: SocialMgr.h:121
Definition: SocialMgr.h:84
ObjectGuid WowAccountGuid
Definition: SocialMgr.h:50
Definition: SocialMgr.h:89
Definition: SocialMgr.h:72
Definition: SocialMgr.h:80
uint8 Class
Definition: SocialMgr.h:55
uint32 Area
Definition: SocialMgr.h:53
void GetFriendInfo(Player *player, ObjectGuid const &friendGUID, FriendInfo &friendInfo)
Definition: SocialMgr.cpp:170
#define TC_GAME_API
Definition: Define.h:134
Definition: SocialMgr.h:92
PlayerSocialMap _playerSocialMap
Definition: SocialMgr.h:129
Definition: SocialMgr.h:33
ObjectGuid _playerGUID
Definition: SocialMgr.h:131
PlayerSocial * LoadFromDB(PreparedQueryResult result, ObjectGuid const &guid)
Definition: SocialMgr.cpp:255
Definition: SocialMgr.h:32
uint8_t uint8
Definition: Define.h:152
Definition: SocialMgr.h:69
Definition: SocialMgr.h:76
Definition: SocialMgr.h:88
Definition: SocialMgr.h:91
Definition: SocialMgr.h:70
Definition: ObjectGuid.h:189
uint8 flags
Definition: DisableMgr.cpp:44
FriendStatus
Definition: SocialMgr.h:29
FriendInfo()
Definition: SocialMgr.h:58
Definition: SocialMgr.h:43
Definition: SocialMgr.h:40
Definition: WorldPacket.h:26
Definition: SocialMgr.h:79
Definition: SocialMgr.h:85
Definition: SocialMgr.h:86
std::map< ObjectGuid, FriendInfo > PlayerSocialMap
Definition: SocialMgr.h:128