mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Add: [Script] ScriptTile::IsHouseTile
This commit is contained in:
@@ -275,6 +275,14 @@ public:
|
||||
*/
|
||||
static bool IsDesertTile(TileIndex tile);
|
||||
|
||||
/**
|
||||
* Check if the tile is town house/building
|
||||
* @param tile The tile to check on.
|
||||
* @pre ScriptMap::IsValidTile(tile).
|
||||
* @return True if and only if the tile is house tile.
|
||||
*/
|
||||
static bool IsHouseTile(TileIndex tile);
|
||||
|
||||
/**
|
||||
* Get the type of terrain regardless of buildings or infrastructure.
|
||||
* @note When a desert or rainforest tile are changed, their terrain type will remain the same. In other words, a sea tile can be of the desert terrain type.
|
||||
|
||||
Reference in New Issue
Block a user