OpenTTD Source 20260206-master-g4d4e37dbf1
depot_cmd.h File Reference

Command definitions related to depots. More...

#include "command_type.h"
#include "depot_type.h"
#include "vehicle_type.h"

Go to the source code of this file.

Functions

CommandCost CmdRenameDepot (DoCommandFlags flags, DepotID depot_id, const std::string &text)
 Rename a depot.
void CcCloneVehicle (Commands, const CommandCost &result, VehicleID veh_id)
 This is the Callback method after the cloning attempt of a vehicle.

Detailed Description

Command definitions related to depots.

Definition in file depot_cmd.h.

Function Documentation

◆ CcCloneVehicle()

void CcCloneVehicle ( Commands ,
const CommandCost & result,
VehicleID veh_id )

This is the Callback method after the cloning attempt of a vehicle.

Parameters
resultthe result of the cloning command
veh_idcloned vehicle ID

Definition at line 124 of file depot_gui.cpp.

References CommandCost::Failed(), and ShowVehicleViewWindow().

Referenced by VehicleViewWindow::OnClick(), and DepotWindow::OnVehicleSelect().

◆ CmdRenameDepot()

CommandCost CmdRenameDepot ( DoCommandFlags flags,
DepotID depot_id,
const std::string & text )