OpenTTD Source
20240919-master-gdf0233f4c2
|
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[] = {
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);
Struct about league table elements.
std::reference_wrapper< const ChunkHandler > ChunkHandlerRef
A reference to ChunkHandler.
void Load() const override
Load the chunk.
@ SL_MIN_VERSION
First savegame version.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
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.
void Save() const override
Save the chunk.
@ SL_MAX_VERSION
Highest possible saveload version.
#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.
std::span< const ChunkHandlerRef > ChunkHandlerTable
A table of ChunkHandler entries.
#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.
@ SLV_LINKGRAPH_EDGES
304 PR#10314 Explicitly store link graph edges destination, PR#10471 int64_t instead of uint64_t leag...
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.