TrinityCore
Loading...
Searching...
No Matches
Realm Struct Reference

#include <Realm.h>

Public Member Functions

 Realm ()
 
 Realm (Realm const &other)
 
 Realm (Realm &&other) noexcept
 
Realm & operator= (Realm const &other)
 
Realm & operator= (Realm &&other) noexcept
 
 ~Realm ()
 
void SetName (std::string name)
 
boost::asio::ip::address GetAddressForClient (boost::asio::ip::address const &clientAddr) const
 
uint32 GetConfigId () const
 

Public Attributes

Battlenet::RealmHandle Id
 
uint32 Build
 
std::vector< boost::asio::ip::address > Addresses
 
uint16 Port
 
std::string Name
 
std::string NormalizedName
 
uint8 Type
 
RealmFlags Flags
 
uint8 Timezone
 
AccountTypes AllowedSecurityLevel
 
RealmPopulationState PopulationLevel
 

Static Public Attributes

static uint32 const ConfigIdByType [MAX_CLIENT_REALM_TYPE]
 

Detailed Description

Definition at line 138 of file Realm.h.

Constructor & Destructor Documentation

◆ Realm() [1/3]

Realm::Realm ( )
default

◆ Realm() [2/3]

Realm::Realm ( Realm const &  other)
default

◆ Realm() [3/3]

Realm::Realm ( Realm &&  other)
defaultnoexcept

◆ ~Realm()

Realm::~Realm ( )
default

Member Function Documentation

◆ GetAddressForClient()

boost::asio::ip::address Realm::GetAddressForClient ( boost::asio::ip::address const &  clientAddr) const

Definition at line 39 of file Realm.cpp.

References Addresses, and Trinity::Net::SelectAddressForClient().

◆ GetConfigId()

uint32 Realm::GetConfigId ( ) const

Definition at line 50 of file Realm.cpp.

References ConfigIdByType, and Type.

Referenced by RealmList::FillRealmEntry().

◆ operator=() [1/2]

Realm & Realm::operator= ( Realm &&  other)
defaultnoexcept

◆ operator=() [2/2]

Realm & Realm::operator= ( Realm const &  other)
default

◆ SetName()

void Realm::SetName ( std::string  name)

Definition at line 32 of file Realm.cpp.

References Name, and NormalizedName.

Referenced by RealmList::UpdateRealm().

Member Data Documentation

◆ Addresses

std::vector<boost::asio::ip::address> Realm::Addresses

Definition at line 149 of file Realm.h.

Referenced by GetAddressForClient(), and RealmList::UpdateRealm().

◆ AllowedSecurityLevel

AccountTypes Realm::AllowedSecurityLevel

Definition at line 156 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), and RealmList::UpdateRealm().

◆ Build

uint32 Realm::Build

Definition at line 148 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), and RealmList::UpdateRealm().

◆ ConfigIdByType

uint32 const Realm::ConfigIdByType
static
Initial value:
=
{
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
}

Definition at line 55 of file Realm.h.

Referenced by GetConfigId().

◆ Flags

RealmFlags Realm::Flags

Definition at line 154 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), and RealmList::UpdateRealm().

◆ Id

Definition at line 147 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), and RealmList::UpdateRealm().

◆ Name

std::string Realm::Name

Definition at line 151 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), SetName(), and RealmList::UpdateRealm().

◆ NormalizedName

std::string Realm::NormalizedName

Definition at line 152 of file Realm.h.

Referenced by SetName().

◆ PopulationLevel

RealmPopulationState Realm::PopulationLevel

Definition at line 157 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), and RealmList::UpdateRealm().

◆ Port

uint16 Realm::Port

Definition at line 150 of file Realm.h.

Referenced by RealmList::UpdateRealm().

◆ Timezone

uint8 Realm::Timezone

Definition at line 155 of file Realm.h.

Referenced by RealmList::FillRealmEntry(), and RealmList::UpdateRealm().

◆ Type

uint8 Realm::Type

Definition at line 153 of file Realm.h.

Referenced by GetConfigId(), and RealmList::UpdateRealm().


The documentation for this struct was generated from the following files: