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

OpenTTD Source 13.2.1

Variables
station_sl_compat.h File Reference
`#include "../saveload.h"`

Go to the source code of this file.

## Variables
const SaveLoadCompat | _roadstop_sl_compat []
| Original field order for _roadstop_desc. More...
const SaveLoadCompat | _station_spec_list_sl_compat []
| Original field order for SlStationSpecList. More...
const SaveLoadCompat | _station_cargo_sl_compat []
| Original field order for SlStationCargo. More...
const SaveLoadCompat | _station_flow_sl_compat []
| Original field order for SlStationFlow. More...
const SaveLoadCompat | _station_goods_sl_compat []
| Original field order for SlStationGoods. More...
const SaveLoadCompat | _station_base_sl_compat []
| Original field order for SlStationBase. More...
const SaveLoadCompat | _station_normal_sl_compat []
| Original field order for SlStationNormal.
const SaveLoadCompat | _station_waypoint_sl_compat []
| Original field order for SlStationWaypoint. More...
const SaveLoadCompat | _station_sl_compat []
| Original field order for _station_desc. More...
const SaveLoadCompat | _old_station_sl_compat []
| Original field order for _old_station_desc.

## Detailed Description

Loading of station chunks before table headers were added.

Definition in file station_sl_compat.h.

## Variable Documentation

## ◆ _roadstop_sl_compat

const SaveLoadCompat _roadstop_sl_compat[]

Initial value:
= {
SLC_VAR("xy"),
SLC_NULL(1, SL_MIN_VERSION, SLV_45),
SLC_VAR("status"),
SLC_NULL(4, SL_MIN_VERSION, SLV_9),
SLC_NULL(2, SL_MIN_VERSION, SLV_45),
SLC_NULL(1, SL_MIN_VERSION, SLV_26),
SLC_VAR("next"),
SLC_NULL(2, SL_MIN_VERSION, SLV_45),
SLC_NULL(4, SL_MIN_VERSION, SLV_25),
SLC_NULL(1, SLV_25, SLV_26),
}

Original field order for _roadstop_desc.

Definition at line 16 of file station_sl_compat.h.

## ◆ _station_base_sl_compat

const SaveLoadCompat _station_base_sl_compat[]

Initial value:
= {
SLC_VAR("xy"),
SLC_VAR("town"),
SLC_VAR("string_id"),
SLC_VAR("name"),
SLC_VAR("delete_ctr"),
SLC_VAR("owner"),
SLC_VAR("facilities"),
SLC_VAR("build_date"),
SLC_VAR("random_bits"),
SLC_VAR("waiting_triggers"),
SLC_VAR("num_specs"),
}

Original field order for SlStationBase.

Definition at line 75 of file station_sl_compat.h.

## ◆ _station_cargo_sl_compat

const SaveLoadCompat _station_cargo_sl_compat[]

Initial value:
= {
SLC_VAR("first"),
SLC_VAR("second"),
}

Original field order for SlStationCargo.

Definition at line 36 of file station_sl_compat.h.

## ◆ _station_flow_sl_compat

const SaveLoadCompat _station_flow_sl_compat[]

Initial value:
= {
SLC_VAR("source"),
SLC_VAR("via"),
SLC_VAR("share"),
SLC_VAR("restricted"),
}

Original field order for SlStationFlow.

Definition at line 42 of file station_sl_compat.h.

## ◆ _station_goods_sl_compat

const SaveLoadCompat _station_goods_sl_compat[]

Initial value:
= {
SLC_VAR("waiting_acceptance"),
SLC_VAR("status"),
SLC_NULL(2, SLV_51, SLV_68),
SLC_VAR("time_since_pickup"),
SLC_VAR("rating"),
SLC_VAR("cargo_source"),
SLC_VAR("cargo_source_xy"),
SLC_VAR("cargo_days"),
SLC_VAR("last_speed"),
SLC_VAR("last_age"),
SLC_VAR("cargo_feeder_share"),
SLC_VAR("amount_fract"),
SLC_VAR("packets"),
SLC_VAR("old_num_dests"),
SLC_VAR("cargo.reserved_count"),
SLC_VAR("link_graph"),
SLC_VAR("node"),
SLC_VAR("old_num_flows"),
SLC_VAR("max_waiting_cargo"),
SLC_VAR("flow"),
SLC_VAR("cargo"),
}

Original field order for SlStationGoods.

Definition at line 50 of file station_sl_compat.h.

## ◆ _station_sl_compat

const SaveLoadCompat _station_sl_compat[]

Initial value:
= {
SLC_VAR("facilities"),
SLC_VAR("normal"),
SLC_VAR("waypoint"),
SLC_VAR("speclist"),
}

Original field order for _station_desc.

Definition at line 133 of file station_sl_compat.h.

## ◆ _station_spec_list_sl_compat

const SaveLoadCompat _station_spec_list_sl_compat[]

Initial value:
= {
SLC_VAR("grfid"),
SLC_VAR("localidx"),
}

Original field order for SlStationSpecList.

Definition at line 30 of file station_sl_compat.h.

## ◆ _station_waypoint_sl_compat

const SaveLoadCompat _station_waypoint_sl_compat[]

Initial value:
= {
SLC_VAR("base"),
SLC_VAR("town_cn"),
SLC_VAR("train_station.tile"),
SLC_VAR("train_station.w"),
SLC_VAR("train_station.h"),
}

Original field order for SlStationWaypoint.

Definition at line 124 of file station_sl_compat.h.

SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1011
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
SLV_45
@ SLV_45
45 8501
Definition: saveload.h:101
SLV_25
@ SLV_25
25 4259
Definition: saveload.h:77
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1019
SLV_68
@ SLV_68
68 10266
Definition: saveload.h:128
SLV_26
@ SLV_26
26 4466
Definition: saveload.h:78
SLV_9
@ SLV_9
9.0 1909
Definition: saveload.h:54
SLV_51
@ SLV_51
51 8978
Definition: saveload.h:108