mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
Add missing stuff to TestPaint
This commit is contained in:
@@ -331,3 +331,23 @@ TileCoordsXYZD ride_get_exit_location(const Ride* ride, const int32_t stationInd
|
||||
{
|
||||
return ride->exits[stationIndex];
|
||||
}
|
||||
|
||||
uint8_t TileElementBase::GetDirection() const
|
||||
{
|
||||
return this->type & TILE_ELEMENT_DIRECTION_MASK;
|
||||
}
|
||||
|
||||
uint8_t TileElementBase::GetDirectionWithOffset(uint8_t offset) const
|
||||
{
|
||||
return ((this->type & TILE_ELEMENT_DIRECTION_MASK) + offset) & TILE_ELEMENT_DIRECTION_MASK;
|
||||
}
|
||||
|
||||
uint8_t SurfaceElement::GetSlope() const
|
||||
{
|
||||
return (slope & TILE_ELEMENT_SURFACE_SLOPE_MASK);
|
||||
}
|
||||
|
||||
uint32_t SurfaceElement::GetWaterHeight() const
|
||||
{
|
||||
return terrain & TILE_ELEMENT_SURFACE_WATER_HEIGHT_MASK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user