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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user