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

OpenTTD Source 14.1

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

Go to the source code of this file.

## Variables
const SaveLoadCompat | _cargopacket_sl_compat []
| Original field order for _cargopacket_desc. More...

## Detailed Description

Loading for cargopacket chunks before table headers were added.

Definition in file cargopacket_sl_compat.h.

## Variable Documentation

## ◆ _cargopacket_sl_compat

const SaveLoadCompat _cargopacket_sl_compat[]

Initial value:
= {
SLC_VAR("source"),
SLC_VAR("source_xy"),
SLC_VAR("loaded_at_xy"),
SLC_VAR("count"),
SLC_VAR("days_in_transit"),
SLC_VAR("feeder_share"),
SLC_VAR("source_type"),
SLC_VAR("source_id"),
SLC_NULL(1, SL_MIN_VERSION, SLV_121),
}

Original field order for _cargopacket_desc.

Definition at line 16 of file cargopacket_sl_compat.h.

Referenced by CAPAChunkHandler::Load().

SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1188
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1196
SLV_121
@ SLV_121
121 16694
Definition: saveload.h:188