12 #include "../stdafx.h" 13 #include "../newgrf_storage.h" 16 #include "../safeguards.h" 44 FOR_ALL_STORAGES(ps) {
46 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.
Highest possible saveload version.
Class for pooled persistent storage of data.
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.
201 PR#6885 Extend NewGRF persistant storages.
#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.