OpenTTD Source  20241121-master-g67a0fccfad
storage_sl.cpp File Reference

Code handling saving and loading of persistent storages. More...

#include "../stdafx.h"
#include "saveload.h"
#include "compat/storage_sl_compat.h"
#include "../newgrf_storage.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  PSACChunkHandler
 Persistent storage data. More...
 

Functions

const ChunkHandlerTable _persistent_storage_chunk_handlers (persistent_storage_chunk_handlers)
 

Variables

static const SaveLoad _storage_desc []
 Description of the data to save and load in PersistentStorage. More...
 
static const PSACChunkHandler PSAC
 
static const ChunkHandlerRef persistent_storage_chunk_handlers []
 

Detailed Description

Code handling saving and loading of persistent storages.

Definition in file storage_sl.cpp.

Variable Documentation

◆ _storage_desc

const SaveLoad _storage_desc[]
static
Initial value:
= {
}
#define SLE_CONDARR(base, variable, type, length, from, to)
Storage of a fixed-size array of SL_VAR elements in some savegame versions.
Definition: saveload.h:895
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition: saveload.h:863
@ SLV_6
6.0 1721 6.1 1768
Definition: saveload.h:46
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:397
@ SLV_EXTEND_PERSISTENT_STORAGE
201 PR#6885 Extend NewGRF persistent storages.
Definition: saveload.h:285
@ SLV_161
161 22567
Definition: saveload.h:236
Class for pooled persistent storage of data.

Description of the data to save and load in PersistentStorage.

Definition at line 20 of file storage_sl.cpp.

Referenced by PSACChunkHandler::Load(), and PSACChunkHandler::Save().

◆ persistent_storage_chunk_handlers

const ChunkHandlerRef persistent_storage_chunk_handlers[]
static
Initial value:
= {
PSAC,
}

Definition at line 57 of file storage_sl.cpp.