OpenTTD Source 20260711-master-g3fb3006dff
depot_sl.cpp File Reference

Code handling saving and loading of depots. More...

#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

Functions

const ChunkHandlerTable _depot_chunk_handlers (depot_chunk_handlers)

Variables

static TownID _town_index
static const SaveLoad _depot_desc []
static const DEPTChunkHandler DEPT
static const ChunkHandlerRef 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:
= {
}
@ U32
A 32 bit unsigned int.
Definition saveload.h:684
@ U16
A 16 bit unsigned int.
Definition saveload.h:664
#define SLEG_CONDVAR(name, variable, type, from, to)
Storage of a global variable in some savegame versions.
Definition saveload.h:1124
@ Town
Load/save a reference to a town.
Definition saveload.h:645
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
Definition saveload.h:958
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition saveload.h:904
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:47
@ MinVersion
First savegame version.
Definition saveload.h:31
@ UniqueDepotNames
Saveload version: 141, SVN revision: 19799 Give depots unique names.
Definition saveload.h:213
@ NewGRFDepotBuildDate
Saveload version: 142, SVN revision: 20003 Depot build date for NewGRFs.
Definition saveload.h:214
@ MaxVersion
Highest possible saveload version.
Definition saveload.h:421
#define SLE_CONDREF(base, variable, type, from, to)
Storage of a reference in some savegame versions.
Definition saveload.h:925
static constexpr VarType U16
Store a 16 bits unsigned int.
Definition saveload.h:754
static constexpr VarType STR
Store string.
Definition saveload.h:760
static constexpr VarType U32
Store a 32 bits unsigned int.
Definition saveload.h:756
static constexpr VarType I32
Store a 32 bits signed int.
Definition saveload.h:755

Definition at line 22 of file depot_sl.cpp.

◆ _town_index

TownID _town_index
static

Definition at line 20 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.

◆ DEPT

const DEPTChunkHandler DEPT
static

Definition at line 69 of file depot_sl.cpp.