OpenTTD Source  20240919-master-gdf0233f4c2
engine_sl_compat.h File Reference
#include "../saveload.h"

Go to the source code of this file.

Variables

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

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"),
}

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"),
}

Original field order for _engine_desc.

Definition at line 16 of file engine_sl_compat.h.

SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1207
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
SLV_45
@ SLV_45
45 8501
Definition: saveload.h:97
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1215
SLV_144
@ SLV_144
144 20334
Definition: saveload.h:215
SLV_2
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition: saveload.h:34
SLV_121
@ SLV_121
121 16694
Definition: saveload.h:188
SLV_179
@ SLV_179
179 24810
Definition: saveload.h:257