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

Move CompoundMapObjectID to separate file

This commit is contained in:
Tomasz Zieliński
2024-09-14 08:55:28 +02:00
parent e89649ec1c
commit 9591ce1ab4
9 changed files with 50 additions and 26 deletions

View File

@@ -13,6 +13,7 @@
#include "../int3.h"
#include "../filesystem/ResourcePath.h"
#include "../serializer/Serializeable.h"
#include "../mapObjects/CompoundMapObjectID.h"
VCMI_LIB_NAMESPACE_BEGIN
@@ -47,7 +48,6 @@ public:
MapObjectID id;
MapObjectSubID subid;
// TODO: get compound id
/// print priority, objects with higher priority will be print first, below everything else
si32 printPriority;
/// animation file that should be used to display object
@@ -124,6 +124,8 @@ public:
// Checks if object can be placed on specific terrain
bool canBePlacedAt(TerrainId terrain) const;
CompoundMapObjectID getCompoundID() const;
ObjectTemplate();
void readTxt(CLegacyConfigParser & parser);