mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Advance map header serialization
This commit is contained in:
@@ -255,6 +255,12 @@ public:
|
||||
|
||||
std::vector<bool> getDefaultAllowed() const override;
|
||||
|
||||
///json serialization helper
|
||||
static si32 decodeArfifact(const std::string & identifier);
|
||||
|
||||
///json serialization helper
|
||||
static std::string encodeArtifact(const si32 index);
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & artifacts & allowedArtifacts & treasures & minors & majors & relics
|
||||
|
||||
Reference in New Issue
Block a user