OpenTTD Source  20241108-master-g80f628063a
station_sl_compat.h File Reference

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

#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_VAR("status"),
SLC_VAR("next"),
}
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1211
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1219
@ SLV_25
25 4259
Definition: saveload.h:73
@ SLV_26
26 4466
Definition: saveload.h:74
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
@ SLV_45
45 8501
Definition: saveload.h:97
@ SLV_9
9.0 1909
Definition: saveload.h:50

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_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"),
}
@ SLV_51
51 8978
Definition: saveload.h:104
@ SLV_68
68 10266
Definition: saveload.h:124

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.