1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Remove save compatibility with 1.5.X

This commit is contained in:
Ivan Savenko
2025-03-18 11:35:15 +00:00
parent 81759143f4
commit eb3b51a6cf
27 changed files with 86 additions and 542 deletions

View File

@@ -46,16 +46,8 @@ class DLL_LINKAGE CampaignRegions
template <typename Handler> void serialize(Handler &h)
{
h & infix;
if (h.version >= Handler::Version::REGION_LABEL)
{
h & pos;
h & labelPos;
}
else
{
h & pos.x;
h & pos.y;
}
h & pos;
h & labelPos;
}
static CampaignRegions::RegionDescription fromJson(const JsonNode & node);
@@ -79,11 +71,8 @@ public:
h & campPrefix;
h & colorSuffixLength;
h & regions;
if (h.version >= Handler::Version::CAMPAIGN_REGIONS)
{
h & campSuffix;
h & campBackground;
}
h & campSuffix;
h & campBackground;
}
static CampaignRegions fromJson(const JsonNode & node);
@@ -150,27 +139,20 @@ public:
h & numberOfScenarios;
h & name;
h & description;
if (h.version >= Handler::Version::MAP_FORMAT_ADDITIONAL_INFOS)
{
h & author;
h & authorContact;
h & campaignVersion;
h & creationDateTime;
}
h & author;
h & authorContact;
h & campaignVersion;
h & creationDateTime;
h & difficultyChosenByPlayer;
h & filename;
h & modName;
h & music;
h & encoding;
h & textContainer;
if (h.version >= Handler::Version::CHRONICLES_SUPPORT)
{
h & loadingBackground;
h & videoRim;
h & introVideo;
}
if (h.version >= Handler::Version::CAMPAIGN_OUTRO_SUPPORT)
h & outroVideo;
h & loadingBackground;
h & videoRim;
h & introVideo;
h & outroVideo;
}
};
@@ -374,8 +356,7 @@ public:
h & chosenCampaignBonuses;
h & campaignSet;
h & mapTranslations;
if (h.version >= Handler::Version::HIGHSCORE_PARAMETERS)
h & highscoreParameters;
h & highscoreParameters;
}
};