OpenTTD Source: RefitOption Struct Reference

OpenTTD Source 12.0-beta1

Public Member Functions | Data Fields
RefitOption Struct Reference

Option to refit a vehicle chain. More...

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

## Data Fields
CargoID | cargo
| Cargo to refit to.
byte | 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 381 of file vehicle_gui.cpp.

## Member Function Documentation

## ◆ operator!=()

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

Inequality operator for RefitOption.

Parameters

  other | Compare to this RefitOption.

Returns
  True if both RefitOption are different.

Definition at line 391 of file vehicle_gui.cpp.

References cargo, and string.

## ◆ 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 401 of file vehicle_gui.cpp.

References cargo, and string.

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

- src/vehicle_gui.cpp