|
OpenTTD Source 20261129-master-g72a8bdc861
|
Information about engine autorenews and autoreplacements. More...
#include <autoreplace_type.h>
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. | |
Information about engine autorenews and autoreplacements.
Definition at line 19 of file autoreplace_type.h.
| EngineID EngineRenew::from = EngineID::Invalid() |
Engine to replace from.
Definition at line 20 of file autoreplace_type.h.
Referenced by AddEngineReplacement(), GRPSChunkHandler::FixPointers(), SlCompanySettings::FixPointers(), and RemoveEngineReplacement().
| 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().
| EngineID EngineRenew::to = EngineID::Invalid() |
Engine to replace to.
Definition at line 21 of file autoreplace_type.h.
Referenced by ReplaceVehicleWindow::DrawWidget(), EngineHasReplacement(), ReplaceVehicleWindow::GenerateLists(), GetNewEngineType(), and Vehicle::NeedsServicing().