1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Started working on objects serialization

This commit is contained in:
AlexVinS
2015-11-13 17:47:47 +03:00
parent a5b72ce593
commit 9cc3dae5fe
9 changed files with 319 additions and 66 deletions

View File

@@ -256,6 +256,12 @@ void ObjectTemplate::readJson(const JsonNode &node)
printPriority = 0; //default value
}
void ObjectTemplate::writeJson(JsonNode & node) const
{
//todo: ObjectTemplate::writeJson
}
ui32 ObjectTemplate::getWidth() const
{
return usedTiles.empty() ? 0 : usedTiles.front().size();