1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Advance map header serialization

This commit is contained in:
AlexVinS
2016-02-21 20:58:09 +03:00
parent b6103167f7
commit 53b5587c2e
16 changed files with 230 additions and 75 deletions

View File

@@ -360,6 +360,12 @@ public:
const std::string getTypeName() const override;
///json serialization helper
static si32 decodeSpell(const std::string & identifier);
///json serialization helper
static std::string encodeSpell(const si32 index);
template <typename Handler> void serialize(Handler &h, const int version)
{
h & objects ;