1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

vcmi: bump max serialization version

And also - now we can choose between 3 states for rewardables
actually.
This commit is contained in:
Konstantin
2023-03-11 21:18:01 +03:00
parent 4c31db52be
commit fafe352f93
4 changed files with 12 additions and 9 deletions

View File

@@ -307,7 +307,7 @@ protected:
bool canRefuse;
/// if true - object info will shown in infobox (like resource pickup)
bool showInInfobox;
EInfoWindowMode infoWindowType = EInfoWindowMode::AUTO;
/// return true if this object was "cleared" before and no longer has rewards applicable to selected hero
/// unlike wasVisited, this method uses information not available to player owner, for example, if object was cleared by another player before
@@ -348,13 +348,14 @@ public:
h & static_cast<CArmedInstance&>(*this);
h & info;
h & canRefuse;
h & showInInfobox;
h & resetParameters;
h & onSelect;
h & visitMode;
h & selectMode;
h & selectedReward;
h & onceVisitableObjectCleared;
if (version >= 817)
h & infoWindowType;
}
// for configuration/object setup