OpenTTD Source: RefitOption Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
RefitOption Struct Reference

Option to refit a vehicle chain. More...

## Public Member Functions
bool | operator== (const RefitOption &other) const
| Equality operator for RefitOption.

## Data Fields
CargoType | cargo
| Cargo to refit to.
uint8_t | subtype
| Subcargo to use.
StringID | string
| GRF-local String to display for the cargo.

## Detailed Description

Option to refit a vehicle chain.

Definition at line 664 of file vehicle_gui.cpp.

## Member Function Documentation

## ◆ operator==()

bool RefitOption::operator== | ( | const RefitOption & | other | ) | const
| inline

Equality operator for RefitOption.

Parameters

  other | Compare to this RefitOption.

Returns
  True if both RefitOption are equal.

Definition at line 674 of file vehicle_gui.cpp.

References cargo, and string.

## Field Documentation

## ◆ cargo

CargoType RefitOption::cargo

Cargo to refit to.

Definition at line 665 of file vehicle_gui.cpp.

Referenced by DrawVehicleRefitWindow(), RefitWindow::GetCapacityString(), operator==(), RefitWindow::RefreshScrollbar(), and RefitWindow::SetSelection().

## ◆ string

StringID RefitOption::string

GRF-local String to display for the cargo.

Definition at line 667 of file vehicle_gui.cpp.

Referenced by operator==().

## ◆ subtype

uint8_t RefitOption::subtype

Subcargo to use.

Definition at line 666 of file vehicle_gui.cpp.

Referenced by DrawVehicleRefitWindow(), and RefitWindow::GetCapacityString().

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

- src/vehicle_gui.cpp