1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Redone RMG template serialization using JSON serializer, added tests

This commit is contained in:
AlexVinS
2018-03-09 21:11:20 +03:00
parent 7d27d144a5
commit 9d108d59db
25 changed files with 991 additions and 718 deletions

View File

@@ -46,6 +46,8 @@ bool JsonComparer::isEmpty(const JsonNode & value)
return !value.Bool();
case JsonNode::JsonType::DATA_FLOAT:
return value.Float() == 0;
case JsonNode::JsonType::DATA_INTEGER:
return value.Integer() == 0;
case JsonNode::JsonType::DATA_STRING:
return value.String() == "";
case JsonNode::JsonType::DATA_VECTOR: