OpenTTD AI API: script_types.hpp File Reference

OpenTTD AI API 15.0

Typedefs
script_types.hpp File Reference

Defines all the types of the game, like IDs of various objects. More...

## Typedefs
using | BridgeType = uint32_t
| The ID of a bridge type.
using | CargoType = uint8_t
| The ID of a cargo type.
using | ClientID = uint32_t
using | CompanyID = uint8_t
| The ID of a company.
using | EngineID = uint16_t
| The ID of an engine.
using | GoalID = uint16_t
| The ID of a goal.
using | GroupID = uint16_t
| The ID of a group.
using | IndustryID = uint16_t
| The ID of an industry.
using | IndustryType = uint8_t
| The ID of an industry-type.
using | Money = int64_t
| Money, stored in a 32bit/64bit safe way. For scripts money is always in pounds.
using | LeagueTableID = uint8_t
| The ID of a league table.
using | LeagueTableElementID = uint16_t
| The ID of an element of a league table.
using | ObjectType = uint16_t
| The ID of an object-type.
using | SignID = uint16_t
| The ID of a sign.
using | StationID = uint16_t
| The ID of a station.
using | StringID = uint32_t
| The ID of a string.
using | SubsidyID = uint16_t
| The ID of a subsidy.
using | StoryPageID = uint16_t
| The ID of a story page.
using | StoryPageElementID = uint16_t
| The ID of a story page element.
using | TileIndex = uint32_t
| The ID of a map location.
using | TownID = uint16_t
| The ID of a town.
using | VehicleID = uint32_t
| The ID of a vehicle.
using | ScriptErrorType = uint32_t
| The types of errors inside the script framework.

## Detailed Description

Defines all the types of the game, like IDs of various objects.

## Typedef Documentation

## ◆ ScriptErrorType

using ScriptErrorType = uint32_t

The types of errors inside the script framework.

Possible value are defined inside each API class in an ErrorMessages enum.