1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Start making new serialization for rewardables

This commit is contained in:
nordsoft
2023-09-13 09:18:46 +02:00
parent 96d6a48f01
commit 574047c55c
3 changed files with 39 additions and 7 deletions

View File

@ -31,6 +31,8 @@ protected:
/// 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
bool wasVisitedBefore(const CGHeroInstance * contextHero) const;
void serializeJsonOptions(JsonSerializeFormat & handler) override;
public:
/// Visitability checks. Note that hero check includes check for hero owner (returns true if object was visited by player)