Feature: GSMarine.BuildRiver function

This commit is contained in:
Yourself
2020-07-06 14:03:40 -07:00
parent e912e5dc63
commit 3927ec08c6
5 changed files with 22 additions and 1 deletions

View File

@@ -158,6 +158,18 @@ public:
*/
static bool BuildCanal(TileIndex tile);
/**
* Builds a river on tile.
* @param tile The tile where the canal will be build.
* @pre ScriptMap::IsValidTile(tile).
* @exception ScriptError::ERR_AREA_NOT_CLEAR
* @exception ScriptError::ERR_LAND_SLOPED_WRONG
* @exception ScriptError::ERR_OWNED_BY_ANOTHER_COMPANY
* @exception ScriptError::ERR_ALREADY_BUILT
* @return Whether the river has been/can be build or not.
*/
static bool BuildRiver(TileIndex tile);
/**
* Removes a water depot.
* @param tile Any tile of the water depot.