Feature/Fix: [GS] Add RoadTiles and GetOneWayInfo endpoints (#611)

Feature: [GS] Add RoadTiles and GetOneWayInfo endpoints
This commit is contained in:
Miika Kulmala
2023-11-29 22:49:31 +02:00
committed by GitHub
parent 88670a230f
commit e47bfe47b8
3 changed files with 88 additions and 3 deletions

View File

@@ -104,6 +104,14 @@
<div class="code">static bool IsTownBuildableRoadType(RoadType roadtype)</div>
<div class="methodtext">Checks whether the given road type is buildable by towns.</div>
</div>
<div class="indent">
<div class="code">static RoadPieces GetRoadPieces(TileIndex tile, RoadTramTypes road_tram_type)</div>
<div class="methodtext">Get the RoadPieces that are on a tile.</div>
</div>
<div class="indent">
<div class="code">static OneWayInfo GetOneWayInfo(TileIndex tile)</div>
<div class="methodtext">Get info about the one-way state of a tile.</div>
</div>
</div>
<h3 id="company">Company: <a href="https://docs.openttd.org/gs-api/classGSCompany.html">GSCompany Class</a> and <a href="https://docs.openttd.org/ai-api/classAICompany.html">AICompany Class</a></h3>