1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +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

@ -69,14 +69,12 @@ void JsonSerializer::serializeInternal(const std::string & fieldName, std::vecto
void JsonSerializer::serializeInternal(std::string & value)
{
if(value != "")
currentObject->String() = value;
currentObject->String() = value;
}
void JsonSerializer::serializeInternal(int64_t & value)
{
if(value != 0)
currentObject->Integer() = value;
currentObject->Integer() = value;
}
void JsonSerializer::serializeLIC(const std::string & fieldName, const TDecoder & decoder, const TEncoder & encoder, const std::vector<bool> & standard, std::vector<bool> & value)