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

GrowUpArtifact pack

This commit is contained in:
SoundSSGood
2025-05-09 22:56:22 +02:00
parent 630f911cc9
commit 9bbebd62e9
8 changed files with 59 additions and 22 deletions

View File

@@ -102,14 +102,12 @@ struct DLL_LINKAGE BattleResultAccepted : public CPackForClient
BattleID battleID = BattleID::NONE;
BattleSideArray<HeroBattleResults> heroResult;
BattleSide winnerSide;
std::vector<BulkMoveArtifacts> artifacts;
template <typename Handler> void serialize(Handler & h)
{
h & battleID;
h & heroResult;
h & winnerSide;
h & artifacts;
assert(battleID != BattleID::NONE);
}
};
@@ -387,7 +385,8 @@ struct DLL_LINKAGE BattleResultsApplied : public CPackForClient
PlayerColor victor;
PlayerColor loser;
ChangeSpells learnedSpells;
std::vector<BulkMoveArtifacts> artifacts;
std::vector<BulkMoveArtifacts> movingArtifacts;
std::vector<GrowUpArtifact> growingArtifacts;
CStackBasicDescriptor raisedStack;
void visitTyped(ICPackVisitor & visitor) override;
@@ -397,7 +396,8 @@ struct DLL_LINKAGE BattleResultsApplied : public CPackForClient
h & victor;
h & loser;
h & learnedSpells;
h & artifacts;
h & movingArtifacts;
h & growingArtifacts;
h & raisedStack;
assert(battleID != BattleID::NONE);
}