more object types I haven't handled yet.

This commit is contained in:
Enno Rehling 2018-05-03 23:04:32 +02:00
parent 75aff73e9a
commit 704148e4bd
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,8 @@ enum {
EXP_RACES,
EXP_MESSAGES,
EXP_STRINGS,
EXP_SPELLS,
EXP_SPELLBOOKS,
};
typedef struct parseinfo {
@ -819,6 +821,12 @@ static void XMLCALL handle_start(void *data, const XML_Char *el, const XML_Char
else if (xml_strcmp(el, "strings") == 0) {
pi->type = EXP_STRINGS;
}
else if (xml_strcmp(el, "spells") == 0) {
pi->type = EXP_SPELLS;
}
else if (xml_strcmp(el, "spellbooks") == 0) {
pi->type = EXP_SPELLBOOKS;
}
else if (xml_strcmp(el, "races") == 0) {
pi->type = EXP_RACES;
}