AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SocialMgr.h File Reference
#include "DatabaseEnv.h"
#include "ObjectGuid.h"
#include <map>

Go to the source code of this file.

Classes

struct  FriendInfo
 
class  PlayerSocial
 
class  SocialMgr
 

Macros

#define SOCIALMGR_FRIEND_LIMIT   50u
 
#define SOCIALMGR_IGNORE_LIMIT   50u
 
#define sSocialMgr   SocialMgr::instance()
 

Enumerations

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 ,
  SOCIAL_FLAG_ALL = SOCIAL_FLAG_FRIEND | SOCIAL_FLAG_IGNORED | SOCIAL_FLAG_MUTED
}
 
enum  FriendsResult : uint8 {
  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_UNK1 = 0x19 ,
  FRIEND_UNK2 = 0x1A ,
  FRIEND_UNK3 = 0x1B ,
  FRIEND_UNKNOWN = 0x1C
}
 Results of friend related commands. More...
 

Macro Definition Documentation

◆ SOCIALMGR_FRIEND_LIMIT

#define SOCIALMGR_FRIEND_LIMIT   50u

◆ SOCIALMGR_IGNORE_LIMIT

#define SOCIALMGR_IGNORE_LIMIT   50u

◆ sSocialMgr

#define sSocialMgr   SocialMgr::instance()

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_UNK1 
FRIEND_UNK2 
FRIEND_UNK3 
FRIEND_UNKNOWN 
65{
66 FRIEND_DB_ERROR = 0x00,
67 FRIEND_LIST_FULL = 0x01,
68 FRIEND_ONLINE = 0x02,
69 FRIEND_OFFLINE = 0x03,
70 FRIEND_NOT_FOUND = 0x04,
71 FRIEND_REMOVED = 0x05,
74 FRIEND_ALREADY = 0x08,
75 FRIEND_SELF = 0x09,
76 FRIEND_ENEMY = 0x0A,
77 FRIEND_IGNORE_FULL = 0x0B,
78 FRIEND_IGNORE_SELF = 0x0C,
83 FRIEND_IGNORE_AMBIGUOUS = 0x11, // That name is ambiguous, type more of the player's server name
84 FRIEND_MUTE_FULL = 0x12,
85 FRIEND_MUTE_SELF = 0x13,
88 FRIEND_MUTE_ADDED = 0x16,
90 FRIEND_MUTE_AMBIGUOUS = 0x18, // That name is ambiguous, type more of the player's server name
91 FRIEND_UNK1 = 0x19, // no message at client
92 FRIEND_UNK2 = 0x1A,
93 FRIEND_UNK3 = 0x1B,
94 FRIEND_UNKNOWN = 0x1C // Unknown friend response from server
95};
@ FRIEND_IGNORE_FULL
Definition: SocialMgr.h:77
@ FRIEND_IGNORE_REMOVED
Definition: SocialMgr.h:82
@ FRIEND_UNK1
Definition: SocialMgr.h:91
@ FRIEND_ONLINE
Definition: SocialMgr.h:68
@ FRIEND_ENEMY
Definition: SocialMgr.h:76
@ FRIEND_ALREADY
Definition: SocialMgr.h:74
@ FRIEND_ADDED_OFFLINE
Definition: SocialMgr.h:73
@ FRIEND_NOT_FOUND
Definition: SocialMgr.h:70
@ FRIEND_MUTE_FULL
Definition: SocialMgr.h:84
@ FRIEND_DB_ERROR
Definition: SocialMgr.h:66
@ FRIEND_ADDED_ONLINE
Definition: SocialMgr.h:72
@ FRIEND_IGNORE_AMBIGUOUS
Definition: SocialMgr.h:83
@ FRIEND_IGNORE_ADDED
Definition: SocialMgr.h:81
@ FRIEND_UNK3
Definition: SocialMgr.h:93
@ FRIEND_MUTE_REMOVED
Definition: SocialMgr.h:89
@ FRIEND_IGNORE_NOT_FOUND
Definition: SocialMgr.h:79
@ FRIEND_MUTE_NOT_FOUND
Definition: SocialMgr.h:86
@ FRIEND_MUTE_ADDED
Definition: SocialMgr.h:88
@ FRIEND_UNK2
Definition: SocialMgr.h:92
@ FRIEND_IGNORE_SELF
Definition: SocialMgr.h:78
@ FRIEND_IGNORE_ALREADY
Definition: SocialMgr.h:80
@ FRIEND_MUTE_SELF
Definition: SocialMgr.h:85
@ FRIEND_SELF
Definition: SocialMgr.h:75
@ FRIEND_REMOVED
Definition: SocialMgr.h:71
@ FRIEND_MUTE_AMBIGUOUS
Definition: SocialMgr.h:90
@ FRIEND_OFFLINE
Definition: SocialMgr.h:69
@ FRIEND_LIST_FULL
Definition: SocialMgr.h:67
@ FRIEND_UNKNOWN
Definition: SocialMgr.h:94
@ FRIEND_MUTE_ALREADY
Definition: SocialMgr.h:87

◆ FriendStatus

Enumerator
FRIEND_STATUS_OFFLINE 
FRIEND_STATUS_ONLINE 
FRIEND_STATUS_AFK 
FRIEND_STATUS_DND 
FRIEND_STATUS_RAF 
29{
32 FRIEND_STATUS_AFK = 0x02,
33 FRIEND_STATUS_DND = 0x04,
35};
@ FRIEND_STATUS_RAF
Definition: SocialMgr.h:34
@ FRIEND_STATUS_AFK
Definition: SocialMgr.h:32
@ FRIEND_STATUS_DND
Definition: SocialMgr.h:33
@ FRIEND_STATUS_OFFLINE
Definition: SocialMgr.h:30
@ FRIEND_STATUS_ONLINE
Definition: SocialMgr.h:31

◆ SocialFlag

enum SocialFlag
Enumerator
SOCIAL_FLAG_FRIEND 
SOCIAL_FLAG_IGNORED 
SOCIAL_FLAG_MUTED 
SOCIAL_FLAG_UNK 
SOCIAL_FLAG_ALL 
38{
39 SOCIAL_FLAG_FRIEND = 0x01,
41 SOCIAL_FLAG_MUTED = 0x04, // guessed
42 SOCIAL_FLAG_UNK = 0x08, // Unknown - does not appear to be RaF
43
45};
@ SOCIAL_FLAG_MUTED
Definition: SocialMgr.h:41
@ SOCIAL_FLAG_ALL
Definition: SocialMgr.h:44
@ SOCIAL_FLAG_FRIEND
Definition: SocialMgr.h:39
@ SOCIAL_FLAG_IGNORED
Definition: SocialMgr.h:40
@ SOCIAL_FLAG_UNK
Definition: SocialMgr.h:42