|
OpenTTD GameScript API 20261112-master-gbcbec5e63f
|
Class that handles all depot related functions. More...
#include <script_depot.hpp>
Public Types | |
| enum | ErrorMessages { ERR_DEPOT_BASE } |
| All depot related error messages. More... | |
Static Public Member Functions | |
| static string | GetName (TileIndex tile) |
| Get the name of a depot. | |
| static bool | SetName (TileIndex tile, Text *name) |
| Set the name of your own depot. | |
Class that handles all depot related functions.
All depot related error messages.
| Enumerator | |
|---|---|
| ERR_DEPOT_BASE | Base for depot related errors. |
|
static |
Get the name of a depot.
| tile | The depot tile to get the name of. |
|
static |
Set the name of your own depot.
| tile | The depot tile to set the name of. |
| name | The new name of the depot (can be either a raw string, or a GSText object). |
| GSError::ERR_NAME_IS_NOT_UNIQUE |