Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SocialMgr.h File Reference
#include "Common.h"
#include "DatabaseEnv.h"
#include "Platform/Singleton.h"
Include dependency graph for SocialMgr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FriendInfo
class  PlayerSocial
class  SocialMgr

Macros

#define SOCIALMGR_FRIEND_LIMIT   100
#define SOCIALMGR_IGNORE_LIMIT   50
#define sSocialMgr   Skyfire::Singleton<SocialMgr, Skyfire::NullMutex>::instance()

Typedefs

typedef std::map< uint32, FriendInfoPlayerSocialMap
typedef std::map< uint32, PlayerSocialSocialMap

Enumerations

enum  FriendsResult {
  FRIEND_DB_ERROR = 0x00 , FRIEND_LIST_FULL = 0x01 , FRIEND_ONLINE = 0x02 , FRIEND_OFFLINE = 0x03 ,
  FRIEND_NOT_FOUND = 0x04 , FRIEND_REMOVED = 0x05 , FRIEND_ADDED_ONLINE = 0x06 , FRIEND_ADDED_OFFLINE = 0x07 ,
  FRIEND_ALREADY = 0x08 , FRIEND_SELF = 0x09 , FRIEND_ENEMY = 0x0A , FRIEND_IGNORE_FULL = 0x0B ,
  FRIEND_IGNORE_SELF = 0x0C , FRIEND_IGNORE_NOT_FOUND = 0x0D , FRIEND_IGNORE_ALREADY = 0x0E , FRIEND_IGNORE_ADDED = 0x0F ,
  FRIEND_IGNORE_REMOVED = 0x10 , FRIEND_IGNORE_AMBIGUOUS = 0x11 , FRIEND_MUTE_FULL = 0x12 , FRIEND_MUTE_SELF = 0x13 ,
  FRIEND_MUTE_NOT_FOUND = 0x14 , FRIEND_MUTE_ALREADY = 0x15 , FRIEND_MUTE_ADDED = 0x16 , FRIEND_MUTE_REMOVED = 0x17 ,
  FRIEND_MUTE_AMBIGUOUS = 0x18 , FRIEND_UNK7 = 0x19 , FRIEND_UNKNOWN = 0x1A
}
 Results of friend related commands. More...
enum  FriendStatus {
  FRIEND_STATUS_OFFLINE = 0x00 , FRIEND_STATUS_ONLINE = 0x01 , FRIEND_STATUS_AFK = 0x02 , FRIEND_STATUS_DND = 0x04 ,
  FRIEND_STATUS_RAF = 0x08
}
enum  SocialFlag { SOCIAL_FLAG_FRIEND = 0x01 , SOCIAL_FLAG_IGNORED = 0x02 , SOCIAL_FLAG_MUTED = 0x04 , SOCIAL_FLAG_UNK = 0x08 }

Macro Definition Documentation

◆ SOCIALMGR_FRIEND_LIMIT

#define SOCIALMGR_FRIEND_LIMIT   100

Definition at line 86 of file SocialMgr.h.

Referenced by PlayerSocial::AddToSocialList(), and SocialMgr::LoadFromDB().

◆ SOCIALMGR_IGNORE_LIMIT

#define SOCIALMGR_IGNORE_LIMIT   50

Definition at line 87 of file SocialMgr.h.

Referenced by PlayerSocial::AddToSocialList(), and SocialMgr::LoadFromDB().

◆ sSocialMgr

Typedef Documentation

◆ PlayerSocialMap

typedef std::map<uint32, FriendInfo> PlayerSocialMap

Definition at line 51 of file SocialMgr.h.

◆ SocialMap

typedef std::map<uint32, PlayerSocial> SocialMap

Definition at line 52 of file SocialMgr.h.

Enumeration Type Documentation

◆ FriendsResult

Results of friend related commands.

Enumerator
FRIEND_DB_ERROR 
FRIEND_LIST_FULL 
FRIEND_ONLINE 
FRIEND_OFFLINE 
FRIEND_NOT_FOUND 
FRIEND_REMOVED 
FRIEND_ADDED_ONLINE 
FRIEND_ADDED_OFFLINE 
FRIEND_ALREADY 
FRIEND_SELF 
FRIEND_ENEMY 
FRIEND_IGNORE_FULL 
FRIEND_IGNORE_SELF 
FRIEND_IGNORE_NOT_FOUND 
FRIEND_IGNORE_ALREADY 
FRIEND_IGNORE_ADDED 
FRIEND_IGNORE_REMOVED 
FRIEND_IGNORE_AMBIGUOUS 
FRIEND_MUTE_FULL 
FRIEND_MUTE_SELF 
FRIEND_MUTE_NOT_FOUND 
FRIEND_MUTE_ALREADY 
FRIEND_MUTE_ADDED 
FRIEND_MUTE_REMOVED 
FRIEND_MUTE_AMBIGUOUS 
FRIEND_UNK7 
FRIEND_UNKNOWN 

Definition at line 55 of file SocialMgr.h.

◆ FriendStatus

Enumerator
FRIEND_STATUS_OFFLINE 
FRIEND_STATUS_ONLINE 
FRIEND_STATUS_AFK 
FRIEND_STATUS_DND 
FRIEND_STATUS_RAF 

Definition at line 18 of file SocialMgr.h.

◆ SocialFlag

enum SocialFlag
Enumerator
SOCIAL_FLAG_FRIEND 
SOCIAL_FLAG_IGNORED 
SOCIAL_FLAG_MUTED 
SOCIAL_FLAG_UNK 

Definition at line 27 of file SocialMgr.h.