11 #include "../clib/cfgelem.h" 12 #include "../plib/pkg.h" 26 throw std::runtime_error(
"Bad UO Skill ID" );
31 skillid( strtoul( elem.rest(), nullptr, 10 ) ),
32 attributename( elem.remove_string(
"Attribute",
"" ) ),
41 bool required =
false;
std::string attributename
void load_packaged_cfgs(const char *cfgname, const char *taglist, void(*loadentry)(const Package *, Clib::ConfigElem &))
const Mobile::Attribute * pAttr
void load_skill_entry(const Plib::Package *pkg, Clib::ConfigElem &elem)
std::vector< UOSkill > uo_skills
void warn(const std::string &errmsg) const
const Plib::Package * pkg
POL_NORETURN void throw_error(const std::string &errmsg) const
const UOSkill & GetUOSkill(unsigned skillid)
size_t estimateSize() const
static Attribute * FindAttribute(const std::string &str)