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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user