18#ifndef __TRINITY_SOCIALMGR_H
19#define __TRINITY_SOCIALMGR_H
100#define SOCIALMGR_FRIEND_LIMIT 50u
101#define SOCIALMGR_IGNORE_LIMIT 50u
111 void SetFriendNote(
ObjectGuid const& guid, std::string
const& note);
161#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)
ObjectGuid const & GetPlayerGUID() const
GuidUnorderedSet _ignoredAccounts
PlayerSocialMap _playerSocialMap
std::map< ObjectGuid, FriendInfo > PlayerSocialMap
static SocialMgr * instance()
std::map< ObjectGuid, PlayerSocial > SocialMap
static void GetFriendInfo(Player *player, ObjectGuid const &friendGUID, FriendInfo &friendInfo)
PlayerSocial * LoadFromDB(PreparedQueryResult result, ObjectGuid const &guid)
void SendFriendStatus(Player *player, FriendsResult result, ObjectGuid const &friendGuid, bool broadcast=false)
void RemovePlayerSocial(ObjectGuid const &guid)
void BroadcastToFriendListers(Player *player, WorldPacket const *packet)
ObjectGuid WowAccountGuid
FriendInfo(ObjectGuid const &accountGuid, uint8 flags, std::string const ¬e)