OpenTTD Source  20241108-master-g80f628063a
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. More...
 
void CcCloneVehicle (Commands cmd, const CommandCost &result, VehicleID veh_id)
 This is the Callback method after the cloning attempt of a vehicle. More...
 

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.

Referenced by DepotWindow::OnVehicleSelect().

◆ CmdRenameDepot()

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