1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Seerhut works as rewardable object

This commit is contained in:
nordsoft
2023-09-15 10:06:06 +02:00
parent 574047c55c
commit 06f01c3b82
13 changed files with 183 additions and 26 deletions

View File

@@ -17,6 +17,7 @@
#include "../NetPacks.h"
#include "../mapObjectConstructors/AObjectTypeHandler.h"
#include "../mapObjectConstructors/CObjectClassesHandler.h"
#include "../serializer/JsonSerializeFormat.h"
VCMI_LIB_NAMESPACE_BEGIN
@@ -278,7 +279,8 @@ CRewardableObject::CRewardableObject()
void CRewardableObject::serializeJsonOptions(JsonSerializeFormat & handler)
{
CArmedInstance::serializeJsonOptions(handler);
handler.serializeStruct("rewardable", static_cast<Rewardable::Interface&>(*this));
}
VCMI_LIB_NAMESPACE_END