OpenTTD Source 20241224-master-gf74b0cf984
RefitOption Struct Reference

Option to refit a vehicle chain. More...

Public Member Functions

bool operator!= (const RefitOption &other) const
 Inequality operator for RefitOption.
 
bool operator== (const RefitOption &other) const
 Equality operator for RefitOption.
 

Data Fields

CargoID 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 663 of file vehicle_gui.cpp.

Member Function Documentation

◆ operator!=()

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

Inequality operator for RefitOption.

Parameters
otherCompare to this RefitOption.
Returns
True if both RefitOption are different.

Definition at line 673 of file vehicle_gui.cpp.

References cargo, and string.

◆ operator==()

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

Equality operator for RefitOption.

Parameters
otherCompare to this RefitOption.
Returns
True if both RefitOption are equal.

Definition at line 683 of file vehicle_gui.cpp.

References cargo, and string.

Field Documentation

◆ cargo

◆ string

StringID RefitOption::string

GRF-local String to display for the cargo.

Definition at line 666 of file vehicle_gui.cpp.

Referenced by operator!=(), and operator==().

◆ subtype

uint8_t RefitOption::subtype

Subcargo to use.

Definition at line 665 of file vehicle_gui.cpp.

Referenced by DrawVehicleRefitWindow().


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