12 #include "../stdafx.h" 13 #include "../newgrf_storage.h" 16 #include "../safeguards.h" 43 FOR_ALL_STORAGES(ps) {
45 SlSetArrayIndex(ps->
index);
Tindex index
Index of this pool item.
static const SaveLoad _storage_desc[]
Description of the data to save and load in PersistentStorage.
Functions/types related to saving and loading games.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
const ChunkHandler _persistent_storage_chunk_handlers[]
Chunk handler for persistent storages.
Class for pooled persistent storage of data.
#define SL_MAX_VERSION
Highest possible savegame version.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.
Handlers and description of chunk.
static void Load_PSAC()
Load persistent storage data.
static void Save_PSAC()
Save persistent storage data.
#define SLE_END()
End marker of a struct/class save or load.
#define SLE_CONDARR(base, variable, type, length, from, to)
Storage of an array in some savegame versions.
void ClearChanges()
Discard temporary changes.
void SlObject(void *object, const SaveLoad *sld)
Main SaveLoad function.
static bool CanAllocateItem(size_t n=1)
Helper functions so we can use PoolItem::Function() instead of _poolitem_pool.Function() ...
Last chunk in this array.