OpenTTD Source 20261129-master-g72a8bdc861
EngineRenew Struct Reference

Information about engine autorenews and autoreplacements. More...

#include <autoreplace_type.h>

Inheritance diagram for EngineRenew:
OldEngineRenew

Data Fields

EngineID from = EngineID::Invalid()
 Engine to replace from.
EngineID to = EngineID::Invalid()
 Engine to replace to.
bool replace_when_old = false
 Do replacement only when vehicle is old.

Detailed Description

Information about engine autorenews and autoreplacements.

Definition at line 19 of file autoreplace_type.h.

Field Documentation

◆ from

EngineID EngineRenew::from = EngineID::Invalid()

◆ replace_when_old

bool EngineRenew::replace_when_old = false

Do replacement only when vehicle is old.

Definition at line 22 of file autoreplace_type.h.

Referenced by ReplaceVehicleWindow::DrawWidget(), EngineHasReplacementWhenOld(), GetNewEngineType(), and Vehicle::NeedsServicing().

◆ to

EngineID EngineRenew::to = EngineID::Invalid()

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