OpenTTD Source: src/saveload/depot_sl.cpp File Reference

OpenTTD Source 13.1

Data Structures | Variables
depot_sl.cpp File Reference
`#include "../stdafx.h"`
`#include "saveload.h"`
`#include "compat/depot_sl_compat.h"`
`#include "../depot_base.h"`
`#include "../town.h"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Data Structures
struct | DEPTChunkHandler

## Variables
static TownID | _town_index
static const SaveLoad | _depot_desc []
static const DEPTChunkHandler | DEPT
static const ChunkHandlerRef | depot_chunk_handlers []
const ChunkHandlerTable | _depot_chunk_handlers (depot_chunk_handlers)

## Detailed Description

Code handling saving and loading of depots

Definition in file depot_sl.cpp.

## Variable Documentation

## ◆ _depot_desc

const SaveLoad _depot_desc[]
| static

Initial value:
= {
SLE_CONDVAR(Depot, xy, SLE_FILE_U16 | SLE_VAR_U32, SL_MIN_VERSION, SLV_6),
SLE_CONDVAR(Depot, xy, SLE_UINT32, SLV_6, SL_MAX_VERSION),
SLEG_CONDVAR("town_index", _town_index, SLE_UINT16, SL_MIN_VERSION, SLV_141),
SLE_CONDREF(Depot, town, REF_TOWN, SLV_141, SL_MAX_VERSION),
SLE_CONDVAR(Depot, town_cn, SLE_UINT16, SLV_141, SL_MAX_VERSION),
SLE_CONDSSTR(Depot, name, SLE_STR, SLV_141, SL_MAX_VERSION),
SLE_CONDVAR(Depot, build_date, SLE_INT32, SLV_142, SL_MAX_VERSION),
}

Definition at line 22 of file depot_sl.cpp.

## ◆ depot_chunk_handlers

const ChunkHandlerRef depot_chunk_handlers[]
| static

Initial value:
= {
DEPT,
}

Definition at line 70 of file depot_sl.cpp.

SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
REF_TOWN
@ REF_TOWN
Load/save a reference to a town.
Definition: saveload.h:544
SLE_CONDSSTR
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
Definition: saveload.h:750
SLE_CONDVAR
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition: saveload.h:708
SLE_STR
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
Definition: saveload.h:804
SLV_141
@ SLV_141
141 19799
Definition: saveload.h:216
SLE_CONDREF
#define SLE_CONDREF(base, variable, type, from, to)
Storage of a reference in some savegame versions.
Definition: saveload.h:718
SLV_142
@ SLV_142
142 20003
Definition: saveload.h:217
SL_MAX_VERSION
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:348
SLEG_CONDVAR
#define SLEG_CONDVAR(name, variable, type, from, to)
Storage of a global variable in some savegame versions.
Definition: saveload.h:855
SLV_6
@ SLV_6
6.0 1721 6.1 1768
Definition: saveload.h:50
Depot
Definition: depot_base.h:19