OpenTTD Source: src/saveload/compat/engine_sl_compat.h File Reference

OpenTTD Source 12.2

Variables
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_NULL(1, SL_MIN_VERSION, SLV_121),
SLC_VAR("flags"),
SLC_NULL(1, SL_MIN_VERSION, SLV_179),
SLC_VAR("preview_asked"),
SLC_VAR("preview_company"),
SLC_VAR("preview_wait"),
SLC_NULL(1, SL_MIN_VERSION, SLV_45),
SLC_VAR("company_avail"),
SLC_VAR("company_hidden"),
SLC_VAR("name"),
SLC_NULL(16, SLV_2, SLV_144),
}

Original field order for _engine_desc.

Definition at line 16 of file engine_sl_compat.h.

SLV_144
@ SLV_144
144 20334
Definition: saveload.h:219
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1007
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
SLV_179
@ SLV_179
179 24810
Definition: saveload.h:261
SLV_45
@ SLV_45
45 8501
Definition: saveload.h:101
SLV_2
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition: saveload.h:38
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1015
SLV_121
@ SLV_121
121 16694
Definition: saveload.h:192