1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Use the most suitable template for object

This commit is contained in:
Tomasz Zieliński
2023-03-28 17:53:08 +02:00
parent 49c029ea6c
commit b184e80b72
3 changed files with 33 additions and 18 deletions

View File

@@ -105,7 +105,12 @@ public:
inline bool canBePlacedAtAnyTerrain() const
{
return anyTerrain;
};
};
const std::set<TerrainId>& getAllowedTerrains() const
{
return allowedTerrains;
}
// Checks if object can be placed on specific terrain
bool canBePlacedAt(TerrainId terrain) const;