Add: [Script] ScriptTile::IsHouseTile

This commit is contained in:
TheDude-gh
2025-11-26 20:44:50 +01:00
committed by rubidium42
parent 67ded4f980
commit 75aee10e1e
4 changed files with 17 additions and 0 deletions
+8
View File
@@ -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.