2023-06-06 23:17:39 +02:00
|
|
|
/*
|
|
|
|
* HillFortInstanceConstructor.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2023-06-07 23:42:47 +02:00
|
|
|
#include "CDefaultObjectTypeHandler.h"
|
2023-06-06 23:17:39 +02:00
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
2023-06-07 23:42:47 +02:00
|
|
|
class HillFort;
|
|
|
|
|
|
|
|
class HillFortInstanceConstructor final : public CDefaultObjectTypeHandler<HillFort>
|
2023-06-06 23:17:39 +02:00
|
|
|
{
|
|
|
|
JsonNode parameters;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void initTypeData(const JsonNode & config) override;
|
2023-06-07 23:42:47 +02:00
|
|
|
void initializeObject(HillFort * object) const override;
|
2023-06-06 23:17:39 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
template <typename Handler> void serialize(Handler &h, const int version)
|
|
|
|
{
|
|
|
|
h & static_cast<AObjectTypeHandler&>(*this);
|
|
|
|
h & parameters;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_END
|