|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Command definitions related to news messages. More...
Go to the source code of this file.
Functions | |
| CommandCost | CmdCustomNewsItem (DoCommandFlags flags, NewsType type, CompanyID company, NewsReference reference, const EncodedString &text) |
| Create a new custom news item. | |
Command definitions related to news messages.
Definition in file news_cmd.h.
| CommandCost CmdCustomNewsItem | ( | DoCommandFlags | flags, |
| NewsType | type, | ||
| CompanyID | company, | ||
| NewsReference | reference, | ||
| const EncodedString & | text ) |
Create a new custom news item.
| flags | type of operation |
| type | NewsType of the message. |
| company | Company this news message is for. |
| reference | First reference of the news message. |
| text | The text of the news message. |
Definition at line 946 of file news_gui.cpp.
References _current_company, _local_company, AddNewsItem(), CMD_ERROR, End, Execute, INVALID_OWNER, SpecializedStation< Station, false >::IsValidID(), IsValidTile(), Normal, OWNER_DEITY, and BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test().