mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
GrowUpArtifact pack
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user