18enum Colours : uint8_t;
Common return value for all commands.
Types related to commands.
@ CMDT_COMPANY_SETTING
Changing settings related to a company.
@ CMDT_MONEY_MANAGEMENT
Management of money, i.e. loans.
@ CMDT_SERVER_SETTING
Pausing/removing companies/server settings.
DoCommandFlag
List of flags for a command.
@ CMD_COMPANY_CTRL
used in multiplayer to create a new companies etc.
@ CMD_RENAME_COMPANY
change the company name
@ CMD_SET_COMPANY_MANAGER_FACE
set the manager's face of the company
@ CMD_GIVE_MONEY
give money to another company
@ CMD_RENAME_PRESIDENT
change the president name
@ CMD_COMPANY_ALLOW_LIST_CTRL
Used in multiplayer to add/remove a client's public key to/from the company's allow list.
@ CMD_SET_COMPANY_COLOUR
set the colour of the company
@ CMD_NO_EST
the command is never estimated.
@ CMD_SPECTATOR
the command may be initiated by a spectator
@ CMD_CLIENT_ID
set p2 with the ClientID of the sending client.
CommandCost CmdSetCompanyColour(DoCommandFlag flags, LiveryScheme scheme, bool primary, Colours colour)
Change the company's company-colour.
CommandCost CmdCompanyCtrl(DoCommandFlag flags, CompanyCtrlAction cca, CompanyID company_id, CompanyRemoveReason reason, ClientID client_id)
Control the companies: add, delete, etc.
CommandCost CmdSetCompanyManagerFace(DoCommandFlag flags, CompanyManagerFace cmf)
Change the company manager's face.
CommandCost CmdGiveMoney(DoCommandFlag flags, Money money, CompanyID dest_company)
Transfer funds (money) from one company to another.
CommandCost CmdRenamePresident(DoCommandFlag flags, const std::string &text)
Change the name of the president.
CommandCost CmdCompanyAllowListCtrl(DoCommandFlag flags, CompanyAllowListCtrlAction action, const std::string &public_key)
Add or remove the given public key to the allow list of this company.
CommandCost CmdRenameCompany(DoCommandFlag flags, const std::string &text)
Change the name of the company.
Types related to companies.
CompanyCtrlAction
The action to do with CMD_COMPANY_CTRL.
CompanyAllowListCtrlAction
The action to do with CMD_COMPANY_ALLOW_LIST_CTRL.
uint32_t CompanyManagerFace
Company manager face bits, info see in company_manager_face.h.
Owner
Enum for all companies/owners.
CompanyRemoveReason
The reason why the company was removed.
Functions/types related to livery colours.
LiveryScheme
List of different livery schemes.
ClientID
'Unique' identifier to be given to clients