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... | |
Static Public Member Functions | |
static bool | Create (NewsType type, Text *text, GSCompany::CompanyID company) |
Create a news messages for a company. |
enum GSNews::NewsType |
Enumeration for the news types that a script can create news for.
static bool GSNews::Create | ( | NewsType | type, | |
Text * | text, | |||
GSCompany::CompanyID | company | |||
) | [static] |
Create a news messages for a 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. |
company == COMPANY_INVALID || ResolveCompanyID(company) != COMPANY_INVALID.