mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
35 lines
747 B
C++
35 lines
747 B
C++
/*
|
|
* 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
|
|
|
|
#include "CDefaultObjectTypeHandler.h"
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
class HillFort;
|
|
|
|
class HillFortInstanceConstructor final : public CDefaultObjectTypeHandler<HillFort>
|
|
{
|
|
JsonNode parameters;
|
|
|
|
protected:
|
|
void initTypeData(const JsonNode & config) override;
|
|
void initializeObject(HillFort * object) const override;
|
|
|
|
public:
|
|
template <typename Handler> void serialize(Handler &h, const int version)
|
|
{
|
|
h & static_cast<AObjectTypeHandler&>(*this);
|
|
h & parameters;
|
|
}
|
|
};
|
|
|
|
VCMI_LIB_NAMESPACE_END
|