10 #include "../stdafx.h"
14 #include "../league_base.h"
16 #include "../safeguards.h"
18 static const SaveLoad _league_table_elements_desc[] = {
37 SlSetArrayIndex(lte->index);
38 SlObject(lte, _league_table_elements_desc);
44 const std::vector<SaveLoad> slt =
SlTableHeader(_league_table_elements_desc);
54 static const SaveLoad _league_tables_desc[] = {
68 SlSetArrayIndex(lt->index);
75 const std::vector<SaveLoad> slt =
SlTableHeader(_league_tables_desc);
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.
std::vector< SaveLoad > SlTableHeader(const SaveLoadTable &slt)
Save or Load a table header.
void SlObject(void *object, const SaveLoadTable &slt)
Main SaveLoad function.
Functions/types related to saving and loading games.
@ SLF_ALLOW_CONTROL
Allow control codes in the strings.
std::reference_wrapper< const ChunkHandler > ChunkHandlerRef
A reference to ChunkHandler.
std::span< const ChunkHandlerRef > ChunkHandlerTable
A table of ChunkHandler entries.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
#define SLE_SSTR(base, variable, type)
Storage of a std::string in every savegame version.
@ SLV_LINKGRAPH_EDGES
304 PR#10314 Explicitly store link graph edges destination, PR#10471 int64_t instead of uint64_t leag...
@ SL_MAX_VERSION
Highest possible saveload version.
@ SL_MIN_VERSION
First savegame version.
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Handlers and description of chunk.
void Load() const override
Load the chunk.
void Save() const override
Save the chunk.
void Load() const override
Load the chunk.
void Save() const override
Save the chunk.
Struct about league table elements.
Struct about custom league tables.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.