OpenTTD Source 20241224-master-gee860a5c8e
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:1247

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:1255
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31
@ SLV_144
144 20334
Definition saveload.h:215
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition saveload.h:34
@ SLV_121
121 16694
Definition saveload.h:188
@ SLV_45
45 8501
Definition saveload.h:97
@ SLV_179
179 24810
Definition saveload.h:257

Original field order for _engine_desc.

Definition at line 16 of file engine_sl_compat.h.

Referenced by ENGNChunkHandler::Load().