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

OpenTTD Source 15.0-RC2

Variables
vehicle_sl_compat.h File Reference

Loading of vehicle chunks before table headers were added. More...

`#include "../saveload.h"`

Go to the source code of this file.

## Variables
const SaveLoadCompat | _vehicle_common_sl_compat []
| Original field order for SlVehicleCommon.
const SaveLoadCompat | _vehicle_train_sl_compat []
| Original field order for SlVehicleTrain.
const SaveLoadCompat | _vehicle_roadveh_sl_compat []
| Original field order for SlVehicleRoadVeh.
const SaveLoadCompat | _vehicle_ship_sl_compat []
| Original field order for SlVehicleShip.
const SaveLoadCompat | _vehicle_aircraft_sl_compat []
| Original field order for SlVehicleAircraft.
const SaveLoadCompat | _vehicle_effect_sl_compat []
| Original field order for SlVehicleEffect.
const SaveLoadCompat | _vehicle_disaster_sl_compat []
| Original field order for SlVehicleDisaster.
const SaveLoadCompat | _vehicle_sl_compat []
| Original field order for vehicle_desc.

## Detailed Description

Loading of vehicle chunks before table headers were added.

Definition in file vehicle_sl_compat.h.

## Variable Documentation

## ◆ _vehicle_aircraft_sl_compat

const SaveLoadCompat _vehicle_aircraft_sl_compat[]

Initial value:
= {
SLC_VAR("common"),
SLC_VAR("crashed_counter"),
SLC_VAR("pos"),
SLC_VAR("targetairport"),
SLC_VAR("state"),
SLC_VAR("previous_pos"),
SLC_VAR("last_direction"),
SLC_VAR("number_consecutive_turns"),
SLC_VAR("turn_counter"),
SLC_VAR("flags"),
SLC_NULL(13, SLV_2, SLV_144),
}
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1262
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1270
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

Original field order for SlVehicleAircraft.

Definition at line 142 of file vehicle_sl_compat.h.

## ◆ _vehicle_common_sl_compat

const SaveLoadCompat _vehicle_common_sl_compat[]

Original field order for SlVehicleCommon.

Definition at line 16 of file vehicle_sl_compat.h.

## ◆ _vehicle_disaster_sl_compat

const SaveLoadCompat _vehicle_disaster_sl_compat[]

Initial value:
= {
SLC_VAR("next"),
SLC_VAR("subtype"),
SLC_VAR("tile"),
SLC_VAR("dest_tile"),
SLC_VAR("x_pos"),
SLC_VAR("y_pos"),
SLC_VAR("z_pos"),
SLC_VAR("direction"),
SLC_NULL(5, SL_MIN_VERSION, SLV_58),
SLC_VAR("owner"),
SLC_VAR("vehstatus"),
SLC_VAR("current_order.dest"),
SLC_VAR("sprite_cache.sprite_seq.seq[0].sprite"),
SLC_VAR("age"),
SLC_VAR("tick_counter"),
SLC_VAR("image_override"),
SLC_VAR("big_ufo_destroyer_target"),
SLC_VAR("flags"),
SLC_NULL(16, SLV_2, SLV_144),
}
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31
SLV_58
@ SLV_58
58 9762
Definition saveload.h:112

Original field order for SlVehicleDisaster.

Definition at line 174 of file vehicle_sl_compat.h.

## ◆ _vehicle_effect_sl_compat

const SaveLoadCompat _vehicle_effect_sl_compat[]

Initial value:
= {
SLC_VAR("subtype"),
SLC_VAR("tile"),
SLC_VAR("x_pos"),
SLC_VAR("y_pos"),
SLC_VAR("z_pos"),
SLC_VAR("sprite_cache.sprite_seq.seq[0].sprite"),
SLC_NULL(5, SL_MIN_VERSION, SLV_59),
SLC_VAR("progress"),
SLC_VAR("vehstatus"),
SLC_VAR("animation_state"),
SLC_VAR("animation_substate"),
SLC_VAR("spritenum"),
SLC_NULL(15, SLV_2, SLV_144),
}
SLV_59
@ SLV_59
59 9779
Definition saveload.h:113

Original field order for SlVehicleEffect.

Definition at line 157 of file vehicle_sl_compat.h.

## ◆ _vehicle_roadveh_sl_compat

const SaveLoadCompat _vehicle_roadveh_sl_compat[]

Initial value:
= {
SLC_VAR("common"),
SLC_VAR("state"),
SLC_VAR("frame"),
SLC_VAR("blocked_ctr"),
SLC_VAR("overtaking"),
SLC_VAR("overtaking_ctr"),
SLC_VAR("crashed_ctr"),
SLC_VAR("reverse_ctr"),
SLC_VAR("path.td"),
SLC_VAR("path.tile"),
SLC_NULL(2, SLV_6, SLV_69),
SLC_VAR("gv_flags"),
SLC_NULL(4, SLV_69, SLV_131),
SLC_NULL(2, SLV_6, SLV_131),
SLC_NULL(16, SLV_2, SLV_144),
}
SLV_69
@ SLV_69
69 10319
Definition saveload.h:125
SLV_6
@ SLV_6
6.0 1721 6.1 1768
Definition saveload.h:46
SLV_131
@ SLV_131
131 18481
Definition saveload.h:200

Original field order for SlVehicleRoadVeh.

Definition at line 114 of file vehicle_sl_compat.h.

## ◆ _vehicle_ship_sl_compat

const SaveLoadCompat _vehicle_ship_sl_compat[]

Initial value:
= {
SLC_VAR("common"),
SLC_VAR("state"),
SLC_VAR("path"),
SLC_VAR("rotation"),
SLC_NULL(16, SLV_2, SLV_144),
}

Original field order for SlVehicleShip.

Definition at line 133 of file vehicle_sl_compat.h.

## ◆ _vehicle_sl_compat

const SaveLoadCompat _vehicle_sl_compat[]

Initial value:
= {
SLC_VAR("type"),
SLC_VAR("train"),
SLC_VAR("roadveh"),
SLC_VAR("ship"),
SLC_VAR("aircraft"),
SLC_VAR("effect"),
SLC_VAR("disaster"),
}

Original field order for vehicle_desc.

Definition at line 197 of file vehicle_sl_compat.h.

Referenced by VEHSChunkHandler::Load().

## ◆ _vehicle_train_sl_compat

const SaveLoadCompat _vehicle_train_sl_compat[]

Initial value:
= {
SLC_VAR("common"),
SLC_VAR("crash_anim_pos"),
SLC_VAR("force_proceed"),
SLC_NULL(1, SL_MIN_VERSION, SLV_ENGINE_MULTI_RAILTYPE),
SLC_VAR("track"),
SLC_VAR("flags"),
SLC_NULL(2, SLV_2, SLV_60),
SLC_VAR("wait_counter"),
SLC_NULL(2, SLV_2, SLV_20),
SLC_VAR("gv_flags"),
SLC_NULL(11, SLV_2, SLV_144),
}
SLV_60
@ SLV_60
60 9874
Definition saveload.h:115
SLV_ENGINE_MULTI_RAILTYPE
@ SLV_ENGINE_MULTI_RAILTYPE
362 PR#14357 Train engines can have multiple railtypes.
Definition saveload.h:414
SLV_20
@ SLV_20
20 3403
Definition saveload.h:67

Original field order for SlVehicleTrain.

Definition at line 99 of file vehicle_sl_compat.h.