1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Remove leftovers from old VLC serialization code

This commit is contained in:
Ivan Savenko
2024-08-09 22:26:46 +00:00
parent 3f9e57d3f3
commit a3b2c49c79

View File

@@ -67,12 +67,6 @@ public:
///resource name
AnimationPath resourceName;
template <typename Handler> void serialize(Handler & h)
{
h & minimumAngle;
h & resourceName;
}
};
struct AnimationItem
@@ -83,14 +77,6 @@ public:
int pause;
AnimationItem();
template <typename Handler> void serialize(Handler & h)
{
h & resourceName;
h & effectName;
h & verticalPosition;
h & pause;
}
};
using TAnimation = AnimationItem;
@@ -111,14 +97,6 @@ public:
///use selectProjectile to access
std::vector<ProjectileInfo> projectile;
template <typename Handler> void serialize(Handler & h)
{
h & projectile;
h & hit;
h & cast;
h & affect;
}
AnimationPath selectProjectile(const double angle) const;
} animationInfo;
@@ -139,20 +117,6 @@ public:
std::vector<std::shared_ptr<Bonus>> cumulativeEffects; //deprecated
JsonNode battleEffects;
template <typename Handler> void serialize(Handler & h)
{
h & cost;
h & power;
h & AIValue;
h & smartTarget;
h & range;
h & effects;
h & cumulativeEffects;
h & clearTarget;
h & clearAffected;
h & battleEffects;
}
};
/** \brief Low level accessor. Don`t use it if absolutely necessary