OpenTTD Source
20241108-master-g80f628063a
|
Command definitions related to news messages. More...
Go to the source code of this file.
Functions | |
CommandCost | CmdCustomNewsItem (DoCommandFlag flags, NewsType type, NewsReferenceType reftype1, CompanyID company, uint32_t reference, const std::string &text) |
Create a new custom news item. More... | |
Command definitions related to news messages.
Definition in file news_cmd.h.
CommandCost CmdCustomNewsItem | ( | DoCommandFlag | flags, |
NewsType | type, | ||
NewsReferenceType | reftype1, | ||
CompanyID | company, | ||
uint32_t | reference, | ||
const std::string & | text | ||
) |
Create a new custom news item.
flags | type of operation @aram type NewsType of the message. |
reftype1 | NewsReferenceType of first reference. |
company | Company this news message is for. |
reference | First reference of the news message. |
text | The text of the news message. |
Definition at line 854 of file news_gui.cpp.
References _current_company, _local_company, AddNewsItem(), CMD_ERROR, DC_EXEC, INVALID_OWNER, SpecializedStation< Station, false >::IsValidID(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_vehicle_pool >::IsValidID(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_engine_pool >::IsValidID(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_industry_pool >::IsValidID(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_town_pool >::IsValidID(), IsValidTile(), NF_NORMAL, NR_ENGINE, NR_INDUSTRY, NR_NONE, NR_STATION, NR_TILE, NR_TOWN, NR_VEHICLE, NT_END, OWNER_DEITY, and SetDParamStr().