1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Boat as bonus system node

This commit is contained in:
nordsoft
2023-04-19 01:11:51 +04:00
parent d1dacd45e2
commit 22da7a931d
6 changed files with 18 additions and 5 deletions

View File

@@ -414,7 +414,7 @@ public:
}
};
class DLL_LINKAGE CGBoat : public CGObjectInstance
class DLL_LINKAGE CGBoat : public CGObjectInstance, public CBonusSystemNode
{
public:
ui8 direction;
@@ -438,9 +438,13 @@ public:
template <typename Handler> void serialize(Handler &h, const int version)
{
h & static_cast<CGObjectInstance&>(*this);
h & static_cast<CBonusSystemNode&>(*this);
h & direction;
h & hero;
h & layer;
h & actualAnimation;
h & overlayAnimation;
h & flagAnimations;
}
};