MinchinWeb's MetaLibrary
v.9
Library functions of OpenTTD AI writers.
|
Industries. More...
Static Public Member Functions | |
function | GetIndustryID (Tile) |
Get the IndustryID of the industry at a given TileID . More... | |
Private Attributes | |
main = null | |
Industries.
These are functions relating to dealing with OpenTTD industries.
Definition at line 25 of file Industry.nut.
|
static |
Get the IndustryID
of the industry at a given TileID
.
Tile | TileID to start the search from |
IndustryID
of the industry at (or around) TileID
. Constants.InvalidIndustry()
if no valid industries can be found. AIIndustry.GetIndustryID( AIIndustry.GetLocation( IndustryID ) )
sometimes fails because GetLocation()
returns the northmost tile of the industry which may be a dock, heliport, or not part of the industry at all. Constants.StationSize()
) until it finds a tile with a valid IndustryID
. Definition at line 48 of file Industry.nut.
|
private |
Definition at line 26 of file Industry.nut.