OpenTTD Source 20241224-master-gf74b0cf984
autoreplace_cmd.h File Reference

Command definitions related to autoreplace. More...

#include "command_type.h"
#include "vehicle_type.h"
#include "engine_type.h"
#include "group_type.h"

Go to the source code of this file.

Functions

CommandCost CmdAutoreplaceVehicle (DoCommandFlag flags, VehicleID veh_id)
 Autoreplaces a vehicle Trains are replaced as a whole chain, free wagons in depot are replaced on their own.
 
CommandCost CmdSetAutoReplace (DoCommandFlag flags, GroupID id_g, EngineID old_engine_type, EngineID new_engine_type, bool when_old)
 Change engine renewal parameters.
 

Detailed Description

Command definitions related to autoreplace.

Definition in file autoreplace_cmd.h.

Function Documentation

◆ CmdAutoreplaceVehicle()

CommandCost CmdAutoreplaceVehicle ( DoCommandFlag  flags,
VehicleID  veh_id 
)

◆ CmdSetAutoReplace()