OpenTTD Source 20260917-master-gec444f7315
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:
= {
}
#define SLE_OBJECT_ADDRESS(base, variable)
Macro to be able to pass the variable type and construct the SaveLoad::AddressFunction given a base c...
Definition saveload.h:754
#define SLE_GLOBAL_ADDRESS(variable)
Macro to be able to pass the variable type and construct the SaveLoad::AddressFunction given a global...
Definition saveload.h:761
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:53
@ MinVersion
First savegame version.
Definition saveload.h:37
@ UniqueDepotNames
Saveload version: 141, SVN revision: 19799 Give depots unique names.
Definition saveload.h:219
@ NewGRFDepotBuildDate
Saveload version: 142, SVN revision: 20003 Depot build date for NewGRFs.
Definition saveload.h:220
static SaveLoad Variable(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion, size_t extra=0)
Storage of a variable in some savegame versions.
Definition saveload.h:926
static SaveLoad Reference(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion)
Storage of a reference to a pool element in some savegame versions.
Definition saveload.h:951
static SaveLoad String(std::string name, AddressFunction< T > address_func, StringValidationSettings string_validation_settings={}, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion, size_t extra=0)
Storage of a string in some savegame versions.
Definition saveload.h:977

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.