|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <SocialMgr.h>
Public Member Functions | |
| void | BroadcastToFriendListers (Player *player, WorldPacket *packet) |
| void | GetFriendInfo (Player *player, uint32 friendGUID, FriendInfo &friendInfo) |
| PlayerSocial * | LoadFromDB (PreparedQueryResult result, uint32 guid) |
| void | MakeFriendStatusPacket (FriendsResult result, uint32 friend_guid, WorldPacket *data) |
| void | RemovePlayerSocial (uint32 guid) |
| void | SendFriendStatus (Player *player, FriendsResult result, uint32 friend_guid, bool broadcast) |
Private Member Functions | |
| SocialMgr () | |
| ~SocialMgr () | |
Private Attributes | |
| SocialMap | m_socialMap |
Friends | |
| class | Skyfire::Singleton< SocialMgr, Skyfire::NullMutex > |
Definition at line 111 of file SocialMgr.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 117 of file SocialMgr.h.
| void SocialMgr::BroadcastToFriendListers | ( | Player * | player, |
| WorldPacket * | packet ) |
Definition at line 272 of file SocialMgr.cpp.
References CONFIG_GM_LEVEL_IN_WHO_LIST, ObjectAccessor::FindPlayer(), Object::GetGUID(), WorldSession::GetSecurity(), Player::GetSession(), Player::GetTeam(), WorldSession::HasPermission(), HIGHGUID_PLAYER, Object::IsInWorld(), Player::IsVisibleGloballyFor(), m_socialMap, MAKE_NEW_GUID(), rbac::RBAC_PERM_TWO_SIDE_WHO_LIST, rbac::RBAC_PERM_WHO_SEE_ALL_SEC_LEVELS, WorldSession::SendPacket(), SOCIAL_FLAG_FRIEND, and sWorld.
Referenced by SendFriendStatus().
| void SocialMgr::GetFriendInfo | ( | Player * | player, |
| uint32 | friendGUID, | ||
| FriendInfo & | friendInfo ) |
Definition at line 185 of file SocialMgr.cpp.
References FriendInfo::Area, FriendInfo::Class, CONFIG_GM_LEVEL_IN_WHO_LIST, ObjectAccessor::FindPlayer(), FRIEND_STATUS_AFK, FRIEND_STATUS_DND, FRIEND_STATUS_OFFLINE, FRIEND_STATUS_ONLINE, Unit::getClass(), Unit::getLevel(), WorldSession::GetSecurity(), Player::GetSession(), Player::GetSocial(), Player::GetTeam(), WorldObject::GetZoneId(), WorldSession::HasPermission(), Player::isAFK(), Player::isDND(), Player::IsVisibleGloballyFor(), FriendInfo::Level, PlayerSocial::m_playerSocialMap, FriendInfo::Note, rbac::RBAC_PERM_TWO_SIDE_WHO_LIST, rbac::RBAC_PERM_WHO_SEE_ALL_SEC_LEVELS, FriendInfo::Status, and sWorld.
Referenced by SendFriendStatus().
| PlayerSocial * SocialMgr::LoadFromDB | ( | PreparedQueryResult | result, |
| uint32 | guid ) |
Definition at line 300 of file SocialMgr.cpp.
References Field::GetString(), Field::GetUInt32(), Field::GetUInt8(), PlayerSocial::m_playerSocialMap, m_socialMap, PlayerSocial::SetPlayerGUID(), SOCIALMGR_FRIEND_LIMIT, and SOCIALMGR_IGNORE_LIMIT.
| void SocialMgr::MakeFriendStatusPacket | ( | FriendsResult | result, |
| uint32 | friend_guid, | ||
| WorldPacket * | data ) |
Definition at line 229 of file SocialMgr.cpp.
References WorldPacket::Initialize(), and SMSG_FRIEND_STATUS.
Referenced by SendFriendStatus().
|
inline |
Definition at line 121 of file SocialMgr.h.
References m_socialMap.
| void SocialMgr::SendFriendStatus | ( | Player * | player, |
| FriendsResult | result, | ||
| uint32 | friend_guid, | ||
| bool | broadcast ) |
Definition at line 236 of file SocialMgr.cpp.
References FriendInfo::Area, BroadcastToFriendListers(), FriendInfo::Class, FRIEND_ADDED_OFFLINE, FRIEND_ADDED_ONLINE, FRIEND_ONLINE, GetFriendInfo(), Player::GetSession(), FriendInfo::Level, MakeFriendStatusPacket(), FriendInfo::Note, WorldSession::SendPacket(), and FriendInfo::Status.
|
friend |
Definition at line 108 of file SocialMgr.h.
|
private |
Definition at line 131 of file SocialMgr.h.
Referenced by BroadcastToFriendListers(), LoadFromDB(), and RemovePlayerSocial().