OpenTTD Source: EngineInfo Struct Reference

OpenTTD Source 14.0-beta1

Data Fields
EngineInfo Struct Reference

Information about a vehicle. More...

`#include <engine_type.h>`

## Data Fields
TimerGameCalendar::Date | base_intro
| Basic date of engine introduction (without random parts).
TimerGameCalendar::Year | lifelength
| Lifetime of a single vehicle.
TimerGameCalendar::Year | base_life
| Basic duration of engine availability (without random parts). `0xFF` means infinite life.
byte | decay_speed
byte | load_amount
byte | climates
| Climates supported by the engine.
CargoID | cargo_type
CargoTypes | refit_mask
byte | refit_cost
byte | misc_flags
| Miscellaneous flags. More...
uint16_t | callback_mask
| Bitmask of vehicle callbacks that have to be called.
int8_t | retire_early
| Number of years early to retire vehicle.
StringID | string_id
| Default name of engine.
uint16_t | cargo_age_period
| Number of ticks before carried cargo is aged.
EngineID | variant_id
| Engine variant ID. If set, will be treated specially in purchase lists.
ExtraEngineFlags | extra_flags

## Detailed Description

Information about a vehicle.

See also
  table/engines.h

Definition at line 144 of file engine_type.h.

## Field Documentation

## ◆ misc_flags

byte EngineInfo::misc_flags

Miscellaneous flags.

See also
  EngineMiscFlags

Definition at line 154 of file engine_type.h.

Referenced by RefitWindow::BuildRefitList(), CheckAutoreplaceValidity(), and RefitVehicle().

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

- src/engine_type.h