Go to the documentation of this file.
10 #include "../stdafx.h"
14 #include "../league_base.h"
16 #include "../safeguards.h"
18 static const SaveLoad _league_table_elements_desc[] = {
36 SlSetArrayIndex(lte->index);
37 SlObject(lte, _league_table_elements_desc);
43 const std::vector<SaveLoad> slt =
SlTableHeader(_league_table_elements_desc);
53 static const SaveLoad _league_tables_desc[] = {
67 SlSetArrayIndex(lt->index);
74 const std::vector<SaveLoad> slt =
SlTableHeader(_league_tables_desc);
Struct about league table elements.
std::reference_wrapper< const ChunkHandler > ChunkHandlerRef
A reference to ChunkHandler.
void Load() const override
Load the chunk.
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
Struct about custom league tables.
Handlers and description of chunk.
@ SLF_ALLOW_CONTROL
Allow control codes in the strings.
void Load() const override
Load the chunk.
A trimmed down version of what std::span will be in C++20.
void Save() const override
Save the chunk.
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
#define SLE_SSTR(base, variable, type)
Storage of a std::string in every savegame version.
void Save() const override
Save the chunk.
void SlObject(void *object, const SaveLoadTable &slt)
Main SaveLoad function.
std::vector< SaveLoad > SlTableHeader(const SaveLoadTable &slt)
Save or Load a table header.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.