|
OpenTTD GameScript API
1.10.0-RC1
|
Class that handles news messages. More...
Public Types | |
| enum | NewsType { NT_ACCIDENT, NT_COMPANY_INFO, NT_ECONOMY, NT_ADVICE, NT_ACCEPTANCE, NT_SUBSIDIES, NT_GENERAL } |
| Enumeration for the news types that a script can create news for. More... | |
| enum | NewsReferenceType { NR_NONE, NR_TILE, NR_STATION, NR_INDUSTRY, NR_TOWN } |
| Reference to a game element. More... | |
Static Public Member Functions | |
| static bool | Create (NewsType type, Text *text, GSCompany::CompanyID company, NewsReferenceType ref_type, uint32 reference) |
| Create a news message for everybody, or for one company. More... | |
Class that handles news messages.
Reference to a game element.
| enum GSNews::NewsType |
Enumeration for the news types that a script can create news for.
|
static |
Create a news message for everybody, or for one company.
| type | The type of the news. |
| text | The text message to show (can be either a raw string, or a GSText object). |
| company | The company, or COMPANY_INVALID for all companies. |
| ref_type | Type of referred game element. |
| reference | The referenced game element of ref_type.
|
1.8.13