Common return value for all commands.
Types related to commands.
@ CMDT_COMPANY_SETTING
Changing settings related to a company.
@ CMDT_VEHICLE_MANAGEMENT
Stopping, starting, sending to depot, turning around, replace orders etc.
@ CMDT_OTHER_MANAGEMENT
Renaming stuff, changing company colours, placing signs, etc.
DoCommandFlag
List of flags for a command.
@ CMD_WANT_ENGINE_PREVIEW
confirm the preview of an engine
@ CMD_ENGINE_CTRL
control availability of the engine for companies
@ CMD_SET_VEHICLE_VISIBILITY
hide or unhide a vehicle in the build vehicle and autoreplace GUIs
@ CMD_RENAME_ENGINE
rename a engine (in the engine list)
@ CMD_SERVER
the command can only be initiated by the server
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
Owner
Enum for all companies/owners.
CommandCost CmdSetVehicleVisibility(DoCommandFlag flags, EngineID engine_id, bool hide)
Set the visibility of an engine.
CommandCost CmdWantEnginePreview(DoCommandFlag flags, EngineID engine_id)
Accept an engine prototype.
CommandCost CmdEngineCtrl(DoCommandFlag flags, EngineID engine_id, CompanyID company_id, bool allow)
Allow or forbid a specific company to use an engine.
CommandCost CmdRenameEngine(DoCommandFlag flags, EngineID engine_id, const std::string &text)
Rename an engine.
uint16_t EngineID
Unique identification number of an engine.