TrinityCore
Loading...
Searching...
No Matches
Realm.h File Reference
#include "AsioHacksFwd.h"
#include "Common.h"
#include "EnumFlag.h"
#include <compare>
#include <vector>
+ Include dependency graph for Realm.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Battlenet::RealmHandle
 
struct  Realm
 

Namespaces

namespace  Trinity
 
namespace  Trinity::Legacy
 
namespace  Battlenet
 

Enumerations

enum class  RealmFlags : uint8 {
  None = 0x00 , VersionMismatch = 0x01 , Hidden = 0x02 , Tournament = 0x04 ,
  VersionBelow = 0x08 , VersionAbove = 0x10 , MobileVersionMismatch = 0x20 , MobileVersionBelow = 0x40 ,
  MobileVersionAbove = 0x80
}
 
enum class  RealmPopulationState : uint8 {
  Offline = 0 , Low = 1 , Medium = 2 , High = 3 ,
  New = 4 , Recommended = 5 , Full = 6 , Locked = 7
}
 
enum  Trinity::Legacy::RealmFlags : uint8 {
  Trinity::Legacy::REALM_FLAG_NONE = 0x00 , Trinity::Legacy::REALM_FLAG_VERSION_MISMATCH = 0x01 , Trinity::Legacy::REALM_FLAG_OFFLINE = 0x02 , Trinity::Legacy::REALM_FLAG_SPECIFYBUILD = 0x04 ,
  Trinity::Legacy::REALM_FLAG_UNK1 = 0x08 , Trinity::Legacy::REALM_FLAG_UNK2 = 0x10 , Trinity::Legacy::REALM_FLAG_RECOMMENDED = 0x20 , Trinity::Legacy::REALM_FLAG_NEW = 0x40 ,
  Trinity::Legacy::REALM_FLAG_FULL = 0x80
}
 
enum  RealmType {
  REALM_TYPE_NORMAL = 0 , REALM_TYPE_PVP = 1 , REALM_TYPE_NORMAL2 = 4 , REALM_TYPE_RP = 6 ,
  REALM_TYPE_RPPVP = 8 , MAX_CLIENT_REALM_TYPE = 14 , REALM_TYPE_FFA_PVP = 16
}
 Type of server, this is values from second column of Cfg_Configs.dbc. More...
 

Functions

 DEFINE_ENUM_FLAG (RealmFlags)
 
constexpr uint8 Trinity::Legacy::format_as (RealmFlags e)
 
constexpr ::RealmFlags Trinity::Legacy::ConvertLegacyRealmFlags (RealmFlags legacyRealmFlags)
 
constexpr RealmPopulationState Trinity::Legacy::ConvertLegacyPopulationState (RealmFlags legacyRealmFlags, float population)
 

Variables

constexpr uint32 HARDCODED_DEVELOPMENT_REALM_CATEGORY_ID = 1
 

Enumeration Type Documentation

◆ RealmFlags

enum class RealmFlags : uint8
strong
Enumerator
None 
VersionMismatch 
Hidden 
Tournament 
VersionBelow 
VersionAbove 
MobileVersionMismatch 
MobileVersionBelow 
MobileVersionAbove 

Definition at line 27 of file Realm.h.

◆ RealmPopulationState

enum class RealmPopulationState : uint8
strong
Enumerator
Offline 
Low 
Medium 
High 
New 
Recommended 
Full 
Locked 

Definition at line 42 of file Realm.h.

◆ RealmType

enum RealmType

Type of server, this is values from second column of Cfg_Configs.dbc.

Enumerator
REALM_TYPE_NORMAL 
REALM_TYPE_PVP 
REALM_TYPE_NORMAL2 
REALM_TYPE_RP 
REALM_TYPE_RPPVP 
MAX_CLIENT_REALM_TYPE 
REALM_TYPE_FFA_PVP 

Definition at line 121 of file Realm.h.

Function Documentation

◆ DEFINE_ENUM_FLAG()

DEFINE_ENUM_FLAG ( RealmFlags  )

Variable Documentation

◆ HARDCODED_DEVELOPMENT_REALM_CATEGORY_ID

constexpr uint32 HARDCODED_DEVELOPMENT_REALM_CATEGORY_ID = 1
inlineconstexpr

Definition at line 135 of file Realm.h.