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

Command definitions related to depots. More...

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

Go to the source code of this file.

Functions

CommandCost CmdRenameDepot (DoCommandFlag flags, DepotID depot_id, const std::string &text)
 Rename a depot.
 
void CcCloneVehicle (Commands cmd, 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  cmd,
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 123 of file depot_gui.cpp.

References CommandCost::Failed(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_vehicle_pool >::Get(), and ShowVehicleViewWindow().

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

◆ CmdRenameDepot()