Add airport tile variables to get airport type local ID and layout
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
<li><a href="#object-ids">Object IDs</a></li>
|
||||
<li><a href="#object-properties">Object properties</a></li>
|
||||
<li><a href="#object-variables">Object variables</a></li>
|
||||
<li><a href="#airport-tile-variables">Airport tile variables</a></li>
|
||||
<li><a href="#global-variable-properties">Global variables properties</a></li>
|
||||
<li><a href="#replace-new-sprites">Replace new sprites</a></li>
|
||||
<li><a href="#signal-graphics">Signal graphics using switches</a></li>
|
||||
@@ -382,6 +383,17 @@
|
||||
This is useful for xoring with the tile_slope variable, because if this variable is unavailable then the result is still the underlying tile slope.
|
||||
</td></tr>
|
||||
</table>
|
||||
<h3 id="airport-tile-variables"><a href="https://newgrf-specs.tt-wiki.net/wiki/NML:Airports#Airport_tile_variables">Airport tile variables</a></h3>
|
||||
<p>Variables in the table below which are not supported by the version of OpenTTD being used return a value of 0.</p>
|
||||
<table>
|
||||
<tr><th>Variable</th><th>Value range</th><th>Comment</th></tr>
|
||||
<tr><td>airport_id</td><td>0..255</td><td>
|
||||
Local GRF ID of the airport type.
|
||||
</td></tr>
|
||||
<tr><td>airport_layout</td><td>0..255</td><td>
|
||||
Airport layout number (as defined in layouts).
|
||||
</td></tr>
|
||||
</table>
|
||||
<h3 id="global-variable-properties">Global variables properties</h3>
|
||||
<p>The variables listed below should set inside an item and property block of the form:<pre class="code">
|
||||
item (FEAT_GLOBALVARS) {
|
||||
|
@@ -52,6 +52,7 @@
|
||||
<li><a href="#varaction2_station">Variational Action 2 - Stations</a></li>
|
||||
<li><a href="#varaction2_railtypes">Variational Action 2 - Railtypes</a></li>
|
||||
<li><a href="#varaction2_object">Variational Action 2 - Objects</a></li>
|
||||
<li><a href="#varaction2_airporttiles">Variational Action 2 - Airport tiles</a></li>
|
||||
<li><a href="#varaction2_signals">Variational Action 2 - Signals (Feature 0E)</a></li>
|
||||
<li><a href="#callbacks_ships">Callbacks - Ships</a></li>
|
||||
<li><a href="#a3objects">Action 3 - Objects</a></li>
|
||||
@@ -882,6 +883,14 @@
|
||||
This is useful for xoring with bits 8-12 of variable 41, because if this variable is unavailable then the result is still the underlying tile slope.</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">action0_object_edge_foundation_mode</font>, version 2</p>
|
||||
<br />
|
||||
<h3 id="varaction2_airporttiles"><a href="https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2/Airport_Tiles">Variational Action 2 - Airport Tiles</a></h3>
|
||||
<h4 id="airporttiles_airport_id">Airport ID (mappable variable: airporttiles_airport_id)</h4>
|
||||
<p>This is the local GRF ID of the airport type.</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">varaction2_airporttiles_airport_info</font>, version 1</p>
|
||||
<h4 id="airporttiles_airport_layout">Airport layout number (mappable variable: airporttiles_airport_layout)</h4>
|
||||
<p>This is the airport layout number (as defined in <a href="https://newgrf-specs.tt-wiki.net/wiki/Action0/Airports#Set_airportlayout.28s.29_.280A.29">airport property 0A</a>).</p>
|
||||
<p>This is indicated by the feature name: <font face="monospace">varaction2_airporttiles_airport_info</font>, version 1</p>
|
||||
<br />
|
||||
<h3 id="varaction2_signals"><a href="https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2">Variational Action 2 - Signals (Feature 0E)</a></h3>
|
||||
<h4 id="signals_signal_restriction_info">Signal routing restriction information (mappable variable: signals_signal_restriction_info)</h4>
|
||||
<p>This applies to <a href="#a3signals_custom_signal_sprites">Action 2/3 Signals (Feature 0E) custom signal sprites</a>.<br />
|
||||
|
Reference in New Issue
Block a user