OpenTTD Source 20260711-master-g3fb3006dff
engine_sl_compat.h File Reference

Loading for engine chunks before table headers were added. More...

#include "../saveload.h"

Go to the source code of this file.

Variables

const SaveLoadCompat _engine_sl_compat []
 Original field order for _engine_desc.
const SaveLoadCompat _engine_id_mapping_sl_compat []
 Original field order for _engine_id_mapping_desc.

Detailed Description

Loading for engine chunks before table headers were added.

Definition in file engine_sl_compat.h.

Variable Documentation

◆ _engine_id_mapping_sl_compat

const SaveLoadCompat _engine_id_mapping_sl_compat[]
Initial value:
= {
SLC_VAR("grfid"),
SLC_VAR("internal_id"),
SLC_VAR("type"),
SLC_VAR("substitute_id"),
}
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1262

Original field order for _engine_id_mapping_desc.

Definition at line 41 of file engine_sl_compat.h.

Referenced by EIDSChunkHandler::Load().

◆ _engine_sl_compat

const SaveLoadCompat _engine_sl_compat[]
Initial value:
= {
SLC_VAR("intro_date"),
SLC_VAR("age"),
SLC_VAR("reliability"),
SLC_VAR("reliability_spd_dec"),
SLC_VAR("reliability_start"),
SLC_VAR("reliability_max"),
SLC_VAR("reliability_final"),
SLC_VAR("duration_phase_1"),
SLC_VAR("duration_phase_2"),
SLC_VAR("duration_phase_3"),
SLC_VAR("flags"),
SLC_VAR("preview_asked"),
SLC_VAR("preview_company"),
SLC_VAR("preview_wait"),
SLC_VAR("company_avail"),
SLC_VAR("company_hidden"),
SLC_VAR("name"),
}
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1270
@ CountPaidForCargo
Saveload version: 45, SVN revision: 8501 Count the amount of cargo that was paid for.
Definition saveload.h:98
@ VehicleCurrencyStationChanges
Saveload version: 2.0, release: 0.3.0 Adding vehicle state, larger currency size for statistics,...
Definition saveload.h:34
@ RobustEnginePreview
Saveload version: 179, SVN revision: 24810 Make engine preview offers robust when company ranking ch...
Definition saveload.h:258
@ CargoPayments
Saveload version: 121, SVN revision: 16694 Perform payment of cargo after unloading.
Definition saveload.h:189
@ MinVersion
First savegame version.
Definition saveload.h:31
@ ReorderUnmovableRemoveReserved
Saveload version: 144, SVN revision: 20334 Reorder map bits of unmovable tiles and remove unused res...
Definition saveload.h:216

Original field order for _engine_desc.

Definition at line 16 of file engine_sl_compat.h.

Referenced by ENGNChunkHandler::Load().