12 #include "../clib/cfgelem.h" 13 #include "../plib/pkg.h" 33 : port( elem.remove_ushort(
"PORT" ) ),
34 aosresist( elem.remove_bool(
"AOSRESISTANCES", false ) ),
35 sticky( elem.remove_bool(
"KeepClients", false ) )
59 elem.
throw_error(
"Attribute " + name +
" not found" );
120 if ( elem.
type_is(
"general" ) )
122 else if ( elem.
type_is(
"protocol" ) )
124 else if ( elem.
type_is(
"listener" ) )
135 return sizeof( bool ) +
name.capacity() +
sizeof( unsigned );
139 size_t size = strength.estimateSize() + intelligence.estimateSize() + dexterity.estimateSize() +
140 hits.estimateSize() + stamina.estimateSize() + mana.estimateSize() +
141 sizeof(
unsigned short )
143 if ( method_script !=
nullptr )
144 size += method_script->estimateSize();
150 if ( method_script !=
nullptr )
152 delete method_script;
153 method_script =
nullptr;
ExportScript * method_script
Vital * FindVital(const std::string &str)
std::string remove_string(const char *propname)
void load_packaged_cfgs(const char *cfgname, const char *taglist, void(*loadentry)(const Package *, Clib::ConfigElem &))
void checka(Clib::ConfigElem &elem, UoClientGeneral::Mapping &mapping, const char *tag)
bool EnableFlowControlPackets
size_t estimateSize() const
Crypt::TCryptInfo encryption
size_t estimateSize() const
POL_NORETURN void throw_error(const std::string &errmsg) const
NetworkManager networkManager
void load_uoclient_entry(const Plib::Package *pkg, Clib::ConfigElem &elem)
void checkv(Clib::ConfigElem &elem, UoClientGeneral::Mapping &mapping, const char *tag)
size_t estimateSize() const
UoClientProtocol uoclient_protocol
bool remove_prop(const char *propname, std::string *value)
void CalculateCryptKeys(const std::string &name, TCryptInfo &infoCrypt)
bool type_is(const char *name) const
void load_protocol_entry(const Plib::Package *, Clib::ConfigElem &elem)
void load_general_entry(const Plib::Package *pkg, Clib::ConfigElem &elem)
unsigned short remove_ushort(const char *propname)
void load_listener_entry(const Plib::Package *, Clib::ConfigElem &elem)
size_t estimateSize() const
UoClientListener(Clib::ConfigElem &elem)
std::vector< UoClientListener > uoclient_listeners
bool remove_bool(const char *propname)
static Attribute * FindAttribute(const std::string &str)
UoClientGeneral uoclient_general