1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

CGHeroInstance: remove old struct

Saves where struct is used is incompatible anyway
This commit is contained in:
Konstantin 2023-04-05 02:00:09 +03:00
parent 2d332f5ce8
commit 01f5571342
2 changed files with 0 additions and 15 deletions

View File

@ -102,20 +102,6 @@ public:
}
} patrol;
// deprecated - used only for loading of old saves
struct HeroSpecial : CBonusSystemNode
{
bool growsWithLevel;
HeroSpecial(){growsWithLevel = false;};
template <typename Handler> void serialize(Handler &h, const int version)
{
h & static_cast<CBonusSystemNode&>(*this);
h & growsWithLevel;
}
};
struct DLL_LINKAGE SecondarySkillsInfo
{
//skills are determined, initialized at map start

View File

@ -194,7 +194,6 @@ void registerTypesMapObjects2(Serializer &s)
s.template registerType<CBonusSystemNode, PlayerState>();
s.template registerType<CBonusSystemNode, TeamState>();
//s.template registerType<CGameState>(); //TODO
s.template registerType<CBonusSystemNode, CGHeroInstance::HeroSpecial>();
//s.template registerType<CArmedInstance>();
s.template registerType<CBonusSystemNode, CStack>();
s.template registerType<CBonusSystemNode, BattleInfo>();