diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-22 00:07:44 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-22 00:08:37 +0200 |
commit | 89d1862497222ea48fb38995492df7947b00c4d7 (patch) | |
tree | 65559d094f931b847eaa46c2031a22d1d98ba89c /src/utils/xml.hpp | |
parent | 26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2 (diff) | |
download | manaserv-89d1862497222ea48fb38995492df7947b00c4d7.tar.gz manaserv-89d1862497222ea48fb38995492df7947b00c4d7.tar.bz2 manaserv-89d1862497222ea48fb38995492df7947b00c4d7.tar.xz manaserv-89d1862497222ea48fb38995492df7947b00c4d7.zip |
Upgraded Skill Map loading.
- Added a new 'default' boolean parameter in mana-skills.xml.
If set to true, unknown weapon types will be defaulted
to the given value.
- Added better checks on skill id and names and improved error
reporting.
- Corrected minor typos, and made small cleanups.
Reviewed-by: jaxad0127
Diffstat (limited to 'src/utils/xml.hpp')
-rw-r--r-- | src/utils/xml.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/xml.hpp b/src/utils/xml.hpp index ee37b481..eba88e56 100644 --- a/src/utils/xml.hpp +++ b/src/utils/xml.hpp @@ -70,6 +70,16 @@ namespace XML }; /** + * Tells if a property from an xmlNodePtr exists. + */ + bool hasProperty(xmlNodePtr node, const char *name); + + /** + * Gets a boolean property from an xmlNodePtr. + */ + bool getBoolProperty(xmlNodePtr node, const char *name, bool def); + + /** * Gets an integer property from an xmlNodePtr. */ int getProperty(xmlNodePtr node, const char *name, int def); |