Difference between revisions of "VariationalAction2/Airports"
From GRFSpecs
Jump to navigationJump to searchPlanetmaker (talk | contribs) (Document some variables) |
Planetmaker (talk | contribs) m (→Variables: partially broken link) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
== Variables == |
== Variables == |
||
{| |- |
{| |- |
||
− | !Variable |
+ | !Variable!![[GRFActionsDetailed|'''Size''']]!!Version!!Description |
|- |
|- |
||
− | |40|||| |
+ | |40||D||{{ottdp|1.1|ottdrev=r20364}}||Layout number |
|} |
|} |
||
− | For other 80+x variables confer the [http://marcin.ttdpatch.net/sv1codec/TTD-locations.html#_StationArray |
+ | For other 80+x variables confer the [http://marcin.ttdpatch.net/sv1codec/TTD-locations.html#_StationArray TTD station structure]. Note that you have to subtract 0x10 from the offsets there, or else the facility bit mask and construction date would not be accessible; instead you lose access to variables 00..0F which are meaningless anyway. |
'''WARNING''': Please do not use variables 8C..EB directly. The meaning of these variables changes if the newcargos switch is on. Use the variables 60..64 instead (common stations variables). Those always work correctly. |
'''WARNING''': Please do not use variables 8C..EB directly. The meaning of these variables changes if the newcargos switch is on. Use the variables 60..64 instead (common stations variables). Those always work correctly. |
Latest revision as of 20:50, 1 August 2011
Introduction
Airports share a number of variables with (rail) stations. The common variables are documented on a separate page
Variables
Variable | Size | Version | Description |
---|---|---|---|
40 | D | 1.1 | Layout number |
For other 80+x variables confer the TTD station structure. Note that you have to subtract 0x10 from the offsets there, or else the facility bit mask and construction date would not be accessible; instead you lose access to variables 00..0F which are meaningless anyway.
WARNING: Please do not use variables 8C..EB directly. The meaning of these variables changes if the newcargos switch is on. Use the variables 60..64 instead (common stations variables). Those always work correctly.
Description
Airport layout (40)
This variable returns the layout number of the airport