19 enum Colours : uint8_t;
Common return value for all commands.
Types related to commands.
@ CMDT_ROUTE_MANAGEMENT
Modifications to route management (orders, groups, etc).
@ CMDT_OTHER_MANAGEMENT
Renaming stuff, changing company colours, placing signs, etc.
DoCommandFlag
List of flags for a command.
Commands
List of commands.
@ CMD_ADD_SHARED_VEHICLE_GROUP
add all other shared vehicles to a group which are missing
@ CMD_ADD_VEHICLE_GROUP
add a vehicle to a group
@ CMD_ALTER_GROUP
alter a group
@ CMD_SET_GROUP_FLAG
set/clear a flag for a group
@ CMD_SET_GROUP_LIVERY
set the livery for a group
@ CMD_CREATE_GROUP
create a new group
@ CMD_REMOVE_ALL_VEHICLES_GROUP
remove all vehicles from a group
@ CMD_DELETE_GROUP
delete a group
CommandCost CmdAlterGroup(DoCommandFlag flags, AlterGroupMode mode, GroupID group_id, GroupID parent_id, const std::string &text)
Alter a group.
CommandCost CmdSetGroupFlag(DoCommandFlag flags, GroupID group_id, GroupFlags flag, bool value, bool recursive)
(Un)set group flag from a group
CommandCost CmdRemoveAllVehiclesGroup(DoCommandFlag flags, GroupID group_id)
Remove all vehicles from a group.
AlterGroupMode
Action for CmdAlterGroup.
@ Rename
Change group name.
@ SetParent
Change group parent.
void CcCreateGroup(Commands cmd, const CommandCost &result, GroupID new_group, VehicleType vt, GroupID parent_group)
Opens a 'Rename group' window for newly created group.
CommandCost CmdDeleteGroup(DoCommandFlag flags, GroupID group_id)
Add all vehicles in the given group to the default group and then deletes the group.
std::tuple< CommandCost, GroupID > CmdCreateGroup(DoCommandFlag flags, VehicleType vt, GroupID parent_group)
Create a new vehicle group.
std::tuple< CommandCost, GroupID > CmdAddVehicleGroup(DoCommandFlag flags, GroupID group_id, VehicleID veh_id, bool add_shared, const VehicleListIdentifier &vli)
Add a vehicle to a group.
CommandCost CmdAddSharedVehicleGroup(DoCommandFlag flags, GroupID id_g, VehicleType type)
Add all shared vehicles of all vehicles from a group.
void CcAddVehicleNewGroup(Commands cmd, const CommandCost &result, GroupID new_group, GroupID, VehicleID veh_id, bool, const VehicleListIdentifier &)
Open rename window after adding a vehicle to a new group via drag and drop.
CommandCost CmdSetGroupLivery(DoCommandFlag flags, GroupID group_id, bool primary, Colours colour)
Set the livery for a vehicle group.
uint16_t GroupID
Type for all group identifiers.
The information about a vehicle list.
Types related to vehicles.
VehicleType
Available vehicle types.
uint32_t VehicleID
The type all our vehicle IDs have.
Functions and type for generating vehicle lists.
Functions and type for serializing vehicle lists.