OpenTTD Source 20260206-master-g4d4e37dbf1
DepotWindow::DepotActionResult Struct Reference

Result of GetVehicleFromDepotWndPt that tries to determine the action to perform. More...

Data Fields

DepotGUIAction action
 Action to perform.
const Vehiclevehicle = nullptr
 The vehicle, or head of vehicle, to perform the action on.
const Vehiclewagon = nullptr
 The wagon to perform the action on. Only set for DragVehicle actions on trains.

Detailed Description

Result of GetVehicleFromDepotWndPt that tries to determine the action to perform.

Definition at line 470 of file depot_gui.cpp.

Field Documentation

◆ action

DepotGUIAction DepotWindow::DepotActionResult::action

◆ vehicle

const Vehicle* DepotWindow::DepotActionResult::vehicle = nullptr

The vehicle, or head of vehicle, to perform the action on.

Definition at line 472 of file depot_gui.cpp.

Referenced by DepotWindow::DepotClick(), DepotWindow::OnDragDrop(), DepotWindow::OnMouseDrag(), and DepotWindow::OnRightClick().

◆ wagon

const Vehicle* DepotWindow::DepotActionResult::wagon = nullptr

The wagon to perform the action on. Only set for DragVehicle actions on trains.

Definition at line 473 of file depot_gui.cpp.

Referenced by DepotWindow::DepotClick(), DepotWindow::OnDragDrop(), DepotWindow::OnMouseDrag(), and DepotWindow::OnRightClick().


The documentation for this struct was generated from the following file: