Horizon Official Technical Documentation
Horizon::Zone::s_zone_server_configuration Struct Reference

#include <Zone.hpp>

Public Member Functions

 s_zone_server_configuration ()=default
 
s_zone_server_configurationoperator= (const s_zone_server_configuration &other)
 
 s_zone_server_configuration (s_zone_server_configuration &&other)
 
 s_zone_server_configuration (const s_zone_server_configuration &other)
 
boost::filesystem::path & get_mapcache_path ()
 
void set_mapcache_path (boost::filesystem::path p)
 
boost::filesystem::path & get_static_db_path ()
 
void set_static_db_path (boost::filesystem::path p)
 
boost::filesystem::path & get_script_root_path ()
 
void set_script_root_path (boost::filesystem::path p)
 
std::time_t session_max_timeout ()
 
void set_session_max_timeout (std::time_t timeout)
 
int max_network_threads ()
 
void set_max_network_threads (int threads)
 
int max_game_logic_threads ()
 
void set_max_game_logic_threads (int threads)
 
int max_persistence_threads ()
 
void set_max_persistence_threads (int threads)
 
int max_script_vm_threads ()
 
void set_max_script_vm_threads (int threads)
 

Public Attributes

boost::filesystem::path _static_db_path
 
boost::filesystem::path _mapcache_path
 
std::time_t _session_max_timeout
 
boost::filesystem::path _script_root_path
 
int _max_network_threads {1}
 
int _max_game_logic_threads {1}
 
int _max_persistence_threads {1}
 
int _max_script_vm_threads {1}
 

Constructor & Destructor Documentation

◆ s_zone_server_configuration() [1/3]

Horizon::Zone::s_zone_server_configuration::s_zone_server_configuration ( )
default

◆ s_zone_server_configuration() [2/3]

Horizon::Zone::s_zone_server_configuration::s_zone_server_configuration ( s_zone_server_configuration &&  other)
inline
93 {
94 _static_db_path = std::move(other._static_db_path);
95 _mapcache_path = std::move(other._mapcache_path);
96 _session_max_timeout = other._session_max_timeout;
97 _script_root_path = std::move(other._script_root_path);
98 _max_network_threads = other._max_network_threads;
99 _max_game_logic_threads = other._max_game_logic_threads;
100 _max_persistence_threads = other._max_persistence_threads;
101 _max_script_vm_threads = other._max_script_vm_threads;
102 }
int _max_script_vm_threads
Definition: Zone.hpp:147
int _max_persistence_threads
Definition: Zone.hpp:146
std::time_t _session_max_timeout
Definition: Zone.hpp:142
int _max_game_logic_threads
Definition: Zone.hpp:145
int _max_network_threads
Definition: Zone.hpp:144
boost::filesystem::path _mapcache_path
Definition: Zone.hpp:141
boost::filesystem::path _static_db_path
Definition: Zone.hpp:140
boost::filesystem::path _script_root_path
Definition: Zone.hpp:143

References _mapcache_path, _max_game_logic_threads, _max_network_threads, _max_persistence_threads, _max_script_vm_threads, _script_root_path, _session_max_timeout, and _static_db_path.

◆ s_zone_server_configuration() [3/3]

Horizon::Zone::s_zone_server_configuration::s_zone_server_configuration ( const s_zone_server_configuration other)
inline
105 {
106 _static_db_path = other._static_db_path;
107 _mapcache_path = other._mapcache_path;
108 _session_max_timeout = other._session_max_timeout;
109 _script_root_path = other._script_root_path;
110 _max_network_threads = other._max_network_threads;
111 _max_game_logic_threads = other._max_game_logic_threads;
112 _max_persistence_threads = other._max_persistence_threads;
113 _max_script_vm_threads = other._max_script_vm_threads;
114 }

References _mapcache_path, _max_game_logic_threads, _max_network_threads, _max_persistence_threads, _max_script_vm_threads, _script_root_path, _session_max_timeout, and _static_db_path.

Member Function Documentation

◆ get_mapcache_path()

boost::filesystem::path & Horizon::Zone::s_zone_server_configuration::get_mapcache_path ( )
inline
116{ return _mapcache_path; }

References _mapcache_path.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ get_script_root_path()

boost::filesystem::path & Horizon::Zone::s_zone_server_configuration::get_script_root_path ( )
inline
122{ return _script_root_path; }

References _script_root_path.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ get_static_db_path()

boost::filesystem::path & Horizon::Zone::s_zone_server_configuration::get_static_db_path ( )
inline
119{ return _static_db_path; }

References _static_db_path.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ max_game_logic_threads()

int Horizon::Zone::s_zone_server_configuration::max_game_logic_threads ( )
inline

◆ max_network_threads()

int Horizon::Zone::s_zone_server_configuration::max_network_threads ( )
inline
128{ return _max_network_threads; }

References _max_network_threads.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ max_persistence_threads()

int Horizon::Zone::s_zone_server_configuration::max_persistence_threads ( )
inline

◆ max_script_vm_threads()

int Horizon::Zone::s_zone_server_configuration::max_script_vm_threads ( )
inline

◆ operator=()

s_zone_server_configuration & Horizon::Zone::s_zone_server_configuration::operator= ( const s_zone_server_configuration other)
inline
77 {
78 if (this != &other)
79 {
80 _static_db_path = other._static_db_path;
81 _mapcache_path = other._mapcache_path;
82 _session_max_timeout = other._session_max_timeout;
83 _script_root_path = other._script_root_path;
84 _max_network_threads = other._max_network_threads;
85 _max_game_logic_threads = other._max_game_logic_threads;
86 _max_persistence_threads = other._max_persistence_threads;
87 _max_script_vm_threads = other._max_script_vm_threads;
88 }
89 return *this;
90 }

References _mapcache_path, _max_game_logic_threads, _max_network_threads, _max_persistence_threads, _max_script_vm_threads, _script_root_path, _session_max_timeout, and _static_db_path.

◆ session_max_timeout()

std::time_t Horizon::Zone::s_zone_server_configuration::session_max_timeout ( )
inline
125{ return _session_max_timeout; }

References _session_max_timeout.

Referenced by Horizon::Zone::ZoneServer::read_config(), and Horizon::Zone::ZoneKernel::verify_connected_sessions().

+ Here is the caller graph for this function:

◆ set_mapcache_path()

void Horizon::Zone::s_zone_server_configuration::set_mapcache_path ( boost::filesystem::path  p)
inline
117{ _mapcache_path = p; }

References _mapcache_path.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_max_game_logic_threads()

void Horizon::Zone::s_zone_server_configuration::set_max_game_logic_threads ( int  threads)
inline
132{ _max_game_logic_threads = threads; }

References _max_game_logic_threads.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_max_network_threads()

void Horizon::Zone::s_zone_server_configuration::set_max_network_threads ( int  threads)
inline
129{ _max_network_threads = threads; }

References _max_network_threads.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_max_persistence_threads()

void Horizon::Zone::s_zone_server_configuration::set_max_persistence_threads ( int  threads)
inline
135{ _max_persistence_threads = threads; }

References _max_persistence_threads.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_max_script_vm_threads()

void Horizon::Zone::s_zone_server_configuration::set_max_script_vm_threads ( int  threads)
inline
138{ _max_script_vm_threads = threads; }

References _max_script_vm_threads.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_script_root_path()

void Horizon::Zone::s_zone_server_configuration::set_script_root_path ( boost::filesystem::path  p)
inline
123{ _script_root_path = p; }

References _script_root_path.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_session_max_timeout()

void Horizon::Zone::s_zone_server_configuration::set_session_max_timeout ( std::time_t  timeout)
inline
126{ _session_max_timeout = timeout; }

References _session_max_timeout.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

◆ set_static_db_path()

void Horizon::Zone::s_zone_server_configuration::set_static_db_path ( boost::filesystem::path  p)
inline
120{ _static_db_path = p; }

References _static_db_path.

Referenced by Horizon::Zone::ZoneServer::read_config().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _mapcache_path

boost::filesystem::path Horizon::Zone::s_zone_server_configuration::_mapcache_path

◆ _max_game_logic_threads

int Horizon::Zone::s_zone_server_configuration::_max_game_logic_threads {1}

◆ _max_network_threads

int Horizon::Zone::s_zone_server_configuration::_max_network_threads {1}

◆ _max_persistence_threads

int Horizon::Zone::s_zone_server_configuration::_max_persistence_threads {1}

◆ _max_script_vm_threads

int Horizon::Zone::s_zone_server_configuration::_max_script_vm_threads {1}

◆ _script_root_path

boost::filesystem::path Horizon::Zone::s_zone_server_configuration::_script_root_path

◆ _session_max_timeout

std::time_t Horizon::Zone::s_zone_server_configuration::_session_max_timeout

◆ _static_db_path

boost::filesystem::path Horizon::Zone::s_zone_server_configuration::_static_db_path

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