frosch wrote:Actually SLOPE_ELEVATED is only used as bitmask. A tile or a foundation has never SLOPE_ELEVATED, instead it has SLOPE_FLAT and an increased height in that case. (Note to self: I should fix those comments)
Okay,got it

. That's mean SLOPE_ELEVATED is only use to ease check, whether a tile has one (or more) kind of slope. IMHO, the documentation should not said "all corner are raised, similar to SLOPE_FLAT ", because a corner tile would never raised at all
frosch wrote:
Furthermore, it seems to me that the API only provides slopes through AITile::GetSlope().
This is the slope of the bare tile without the foundation. That also means that that function will never return a halftile slope.
Maybe AITile::GetFoundationSlope() should be added

Though maybe it is not of any use.
Mmmm.... I think so, doesn't need to care with foundation. As long as the tile is flat and buildable, we can build something over it

.
frosch wrote:
Oh, hmm, AITile::GetHeight() also needs work :/
Maybe adding this into API would be more useful.
Quoted from
docs :
GetTileMaxZ(TileIndex t) -> Get top height of the tile.
GetTileZ(TileIndex tile) - > Get bottom height of the tile.
But it could be implemented too with squirrel (doesn't need change API)