OpenTTD Source
20240919-master-gdf0233f4c2
|
@ CMD_UPDATE_LEAGUE_TABLE_ELEMENT_DATA
update the data fields of a league table element
@ CMD_CREATE_LEAGUE_TABLE_ELEMENT
create a new element in a league table
Owner
Enum for all companies/owners.
@ CMD_REMOVE_LEAGUE_TABLE_ELEMENT
remove a league table element
DoCommandFlag
List of flags for a command.
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
CommandCost CmdUpdateLeagueTableElementScore(DoCommandFlag flags, LeagueTableElementID element, int64_t rating, const std::string &score)
Update the score of a league table element.
CommandCost CmdRemoveLeagueTableElement(DoCommandFlag flags, LeagueTableElementID element)
Remove a league table element.
Common return value for all commands.
@ CMDT_OTHER_MANAGEMENT
Renaming stuff, changing company colours, placing signs, etc.
std::tuple< CommandCost, LeagueTableID > CmdCreateLeagueTable(DoCommandFlag flags, const std::string &title, const std::string &header, const std::string &footer)
Create a new league table.
uint8_t LeagueTableID
ID of a league table.
LinkType
Types of the possible link targets.
@ CMD_UPDATE_LEAGUE_TABLE_ELEMENT_SCORE
update the score of a league table element
CommandCost CmdUpdateLeagueTableElementData(DoCommandFlag flags, LeagueTableElementID element, CompanyID company, const std::string &text, LinkType link_type, LinkTargetID link_target)
Update the attributes of a league table element.
@ CMD_CREATE_LEAGUE_TABLE
create a new league table
uint16_t LeagueTableElementID
ID of a league table element.
std::tuple< CommandCost, LeagueTableElementID > CmdCreateLeagueTableElement(DoCommandFlag flags, LeagueTableID table, int64_t rating, CompanyID company, const std::string &text, const std::string &score, LinkType link_type, LinkTargetID link_target)
Create a new element in a league table.
@ CMD_STR_CTRL
the command's string may contain control strings
uint32_t LinkTargetID
Contains either tile, industry ID, town ID, story page ID or company ID.