mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Random map generator refactoring (#762)
random map generator refactoring and improvements
This commit is contained in:
committed by
Andrii Danylchenko
parent
804f1bf3f2
commit
4bd0ff680a
@@ -93,7 +93,7 @@ public:
|
||||
void deselectRange(const MapRect & rect) override;
|
||||
void selectAll() override;
|
||||
void clearSelection() override;
|
||||
void setSelection(std::vector<int3> & vec);
|
||||
void setSelection(const std::vector<int3> & vec);
|
||||
};
|
||||
|
||||
/// Selection class to select objects.
|
||||
@@ -173,6 +173,9 @@ public:
|
||||
|
||||
/// Draws roads at the current terrain selection. The selection will be cleared automatically.
|
||||
void drawRoad(const std::string & roadType, CRandomGenerator * gen = nullptr);
|
||||
|
||||
/// Draws rivers at the current terrain selection. The selection will be cleared automatically.
|
||||
void drawRiver(const std::string & riverType, CRandomGenerator * gen = nullptr);
|
||||
|
||||
void insertObject(CGObjectInstance * obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user