TrinityCore
Loading...
Searching...
No Matches
Trinity::Legacy Namespace Reference

Enumerations

enum class  TypeID {
  Object = 0 , Item = 1 , Container = 2 , Unit = 3 ,
  Player = 4 , GameObject = 5 , DynamicObject = 6 , Corpse = 7 ,
  AreaTrigger = 8 , SceneObject = 9 , Conversation = 10 , Max
}
 
enum  RealmFlags : uint8 {
  REALM_FLAG_NONE = 0x00 , REALM_FLAG_VERSION_MISMATCH = 0x01 , REALM_FLAG_OFFLINE = 0x02 , REALM_FLAG_SPECIFYBUILD = 0x04 ,
  REALM_FLAG_UNK1 = 0x08 , REALM_FLAG_UNK2 = 0x10 , REALM_FLAG_RECOMMENDED = 0x20 , REALM_FLAG_NEW = 0x40 ,
  REALM_FLAG_FULL = 0x80
}
 

Functions

constexpr ::TypeID ConvertLegacyTypeID (TypeID legacyTypeID)
 
constexpr TypeMask ConvertLegacyTypeMask (uint32 legacyTypeMask)
 
constexpr uint8 format_as (RealmFlags e)
 
constexpr ::RealmFlags ConvertLegacyRealmFlags (RealmFlags legacyRealmFlags)
 
constexpr RealmPopulationState ConvertLegacyPopulationState (RealmFlags legacyRealmFlags, float population)
 

Enumeration Type Documentation

◆ RealmFlags

Enumerator
REALM_FLAG_NONE 
REALM_FLAG_VERSION_MISMATCH 
REALM_FLAG_OFFLINE 
REALM_FLAG_SPECIFYBUILD 
REALM_FLAG_UNK1 
REALM_FLAG_UNK2 
REALM_FLAG_RECOMMENDED 
REALM_FLAG_NEW 
REALM_FLAG_FULL 

Definition at line 56 of file Realm.h.

◆ TypeID

enum class Trinity::Legacy::TypeID
strong
Enumerator
Object 
Item 
Container 
Unit 
Player 
GameObject 
DynamicObject 
Corpse 
AreaTrigger 
SceneObject 
Conversation 
Max 

Definition at line 460 of file ObjectGuid.h.

Function Documentation

◆ ConvertLegacyPopulationState()

constexpr RealmPopulationState Trinity::Legacy::ConvertLegacyPopulationState ( RealmFlags  legacyRealmFlags,
float  population 
)
inlineconstexpr

Definition at line 79 of file Realm.h.

◆ ConvertLegacyRealmFlags()

constexpr ::RealmFlags Trinity::Legacy::ConvertLegacyRealmFlags ( RealmFlags  legacyRealmFlags)
inline

Definition at line 71 of file Realm.h.

◆ ConvertLegacyTypeID()

constexpr ::TypeID Trinity::Legacy::ConvertLegacyTypeID ( TypeID  legacyTypeID)
inlineconstexpr

Definition at line 476 of file ObjectGuid.h.

+ Here is the caller graph for this function:

◆ ConvertLegacyTypeMask()

constexpr TypeMask Trinity::Legacy::ConvertLegacyTypeMask ( uint32  legacyTypeMask)
inlineconstexpr

Definition at line 507 of file ObjectGuid.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_as()

constexpr uint8 Trinity::Legacy::format_as ( RealmFlags  e)
inlineconstexpr

Definition at line 69 of file Realm.h.