mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix map object appearance serialization
This commit is contained in:
@@ -101,12 +101,6 @@ class DLL_LINKAGE AObjectTypeHandler : public boost::noncopyable
|
||||
/// Human-readable name of this object, used for objects like banks and dwellings, if set
|
||||
boost::optional<std::string> objectName;
|
||||
|
||||
si32 type;
|
||||
si32 subtype;
|
||||
|
||||
std::string typeName;
|
||||
std::string subTypeName;
|
||||
|
||||
JsonNode base; /// describes base template
|
||||
|
||||
std::vector<ObjectTemplate> templates;
|
||||
@@ -117,6 +111,12 @@ protected:
|
||||
/// initialization for classes that inherit this one
|
||||
virtual void initTypeData(const JsonNode & input);
|
||||
public:
|
||||
std::string typeName;
|
||||
std::string subTypeName;
|
||||
|
||||
si32 type;
|
||||
si32 subtype;
|
||||
|
||||
virtual ~AObjectTypeHandler(){}
|
||||
|
||||
void setType(si32 type, si32 subtype);
|
||||
|
||||
Reference in New Issue
Block a user