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