1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-17 03:49:28 +00:00

Added a blockEditor="1" property to a mod xml.

This commit is contained in:
fgenesis 2012-02-12 01:15:46 +01:00
commit ea780f2ac9
5 changed files with 29 additions and 14 deletions

View file

@ -59,6 +59,7 @@ void Mod::clear()
doRecache = 0;
debugMenu = false;
hasMap = false;
blockEditor = false;
}
bool Mod::isDebugMenu()
@ -71,6 +72,11 @@ bool Mod::hasWorldMap()
return hasMap;
}
bool Mod::isEditorBlocked()
{
return blockEditor;
}
void Mod::loadModXML(TiXmlDocument *d, std::string modName)
{
d->LoadFile(baseModPath + modName + ".xml");
@ -124,6 +130,11 @@ void Mod::load(const std::string &p)
props->Attribute("hasWorldMap", &t);
hasMap = t;
}
if (props->Attribute("blockEditor")) {
int t;
props->Attribute("blockEditor", &t);
blockEditor = t;
}
}
}