18#ifndef __TRINITY_SOCIALMGR_H
19#define __TRINITY_SOCIALMGR_H
100#define SOCIALMGR_FRIEND_LIMIT 50u
101#define SOCIALMGR_IGNORE_LIMIT 50u
118 void SetFriendNote(
ObjectGuid const& guid,
std::
string const& note);
127 ObjectGuid const& GetPlayerGUID()
const {
return _playerGUID; }
173#define sSocialMgr SocialMgr::instance()
std::shared_ptr< PreparedResultSet > PreparedQueryResult
std::unordered_set< ObjectGuid > GuidUnorderedSet
FriendsResult
Results of friend related commands.
@ FRIEND_IGNORE_AMBIGUOUS
@ FRIEND_IGNORE_NOT_FOUND
void SetPlayerGUID(ObjectGuid const &guid)
GuidUnorderedSet _ignoredAccounts
PlayerSocialMap _playerSocialMap
PlayerSocial(PlayerSocial const &)
std::map< ObjectGuid, FriendInfo > PlayerSocialMap
PlayerSocial(PlayerSocial &&) noexcept
SocialMgr(SocialMgr const &)=delete
static SocialMgr * instance()
std::map< ObjectGuid, PlayerSocial > SocialMap
static void GetFriendInfo(Player *player, ObjectGuid const &friendGUID, FriendInfo &friendInfo)
SocialMgr(SocialMgr &&)=delete
PlayerSocial * LoadFromDB(PreparedQueryResult result, ObjectGuid const &guid)
SocialMgr & operator=(SocialMgr const &)=delete
void SendFriendStatus(Player *player, FriendsResult result, ObjectGuid const &friendGuid, bool broadcast=false)
SocialMgr & operator=(SocialMgr &&)=delete
void RemovePlayerSocial(ObjectGuid const &guid)
void BroadcastToFriendListers(Player *player, WorldPacket const *packet)
ObjectGuid WowAccountGuid
FriendInfo(ObjectGuid const &accountGuid, uint8 flags, std::string const ¬e)