mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Allow multiple terrains per biome
This commit is contained in:
@@ -46,8 +46,10 @@ public:
|
||||
EObstacleType getType() const;
|
||||
void setType(EObstacleType type);
|
||||
|
||||
TerrainId getTerrain() const;
|
||||
std::set<TerrainId> getTerrains() const;
|
||||
void setTerrain(TerrainId terrain);
|
||||
void setTerrains(const std::set<TerrainId> & terrains);
|
||||
void addTerrain(TerrainId terrain);
|
||||
|
||||
static EObstacleType typeFromString(const std::string &str);
|
||||
std::string toString() const;
|
||||
@@ -56,7 +58,7 @@ public:
|
||||
|
||||
private:
|
||||
EObstacleType type;
|
||||
TerrainId terrain;
|
||||
std::set<TerrainId> allowedTerrains;
|
||||
std::vector<std::shared_ptr<const ObjectTemplate>> obstacles;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user