28 void CcBuildWagon(
Commands cmd,
const CommandCost &result,
VehicleID new_veh_id, uint, uint16_t,
CargoArray,
TileIndex tile,
EngineID,
bool,
CargoID,
ClientID);
uint8_t CargoID
Cargo slots to indicate a cargo type within a game.
Common return value for all commands.
Types related to commands.
@ CMDT_VEHICLE_CONSTRUCTION
Construction, modification (incl. refit) and destruction of vehicles.
@ CMDT_VEHICLE_MANAGEMENT
Stopping, starting, sending to depot, turning around, replace orders etc.
DoCommandFlag
List of flags for a command.
Commands
List of commands.
@ CMD_FORCE_TRAIN_PROCEED
proceed a train to pass a red signal
@ CMD_REVERSE_TRAIN_DIRECTION
turn a train around
@ CMD_MOVE_RAIL_VEHICLE
move a rail vehicle (in the depot)
@ CMD_LOCATION
the command has implicit location argument.
Types related to engines.
uint16_t EngineID
Unique identification number of an engine.
ClientID
'Unique' identifier to be given to clients
Class for storing amounts of cargo.
CommandCost CmdBuildRailVehicle(DoCommandFlag flags, TileIndex tile, const Engine *e, Vehicle **ret)
Build a railroad vehicle.
CommandCost CmdMoveRailVehicle(DoCommandFlag flags, VehicleID src_veh, VehicleID dest_veh, bool move_chain)
Move a rail vehicle around inside the depot.
void CcBuildWagon(Commands cmd, const CommandCost &result, VehicleID new_veh_id, uint, uint16_t, CargoArray, TileIndex tile, EngineID, bool, CargoID, ClientID)
Callback for building wagons.
CommandCost CmdSellRailWagon(DoCommandFlag flags, Vehicle *t, bool sell_chain, bool backup_order, ClientID user)
Sell a (single) train wagon/engine.
CommandCost CmdForceTrainProceed(DoCommandFlag flags, VehicleID veh_id)
Force a train through a red signal.
CommandCost CmdReverseTrainDirection(DoCommandFlag flags, VehicleID veh_id, bool reverse_single_veh)
Reverse train.
Types related to vehicles.
uint32_t VehicleID
The type all our vehicle IDs have.