OpenTTD Source 20260917-master-gec444f7315
league_sl.cpp File Reference

Code handling saving and loading of league tables. More...

#include "../stdafx.h"
#include "saveload.h"
#include "../league_base.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  LEAEChunkHandler
struct  LEATChunkHandler

Functions

const ChunkHandlerTable _league_chunk_handlers (league_chunk_handlers)

Variables

static const SaveLoad _league_table_elements_desc []
static const SaveLoad _league_tables_desc []
static const LEAEChunkHandler LEAE
static const LEATChunkHandler LEAT
static const ChunkHandlerRef league_chunk_handlers []

Detailed Description

Code handling saving and loading of league tables.

Definition in file league_sl.cpp.

Variable Documentation

◆ _league_table_elements_desc

const SaveLoad _league_table_elements_desc[]
static
Initial value:
= {
}
#define SLE_OBJECT_ADDRESS(base, variable)
Macro to be able to pass the variable type and construct the SaveLoad::AddressFunction given a base c...
Definition saveload.h:754
@ LinkgraphEdges
Saveload version: 304, GitHub pull request: 10314 Explicitly store link graph edges destination,...
Definition saveload.h:350
@ MinVersion
First savegame version.
Definition saveload.h:37
@ AllowControlCode
Allow the special control codes.
Definition string_type.h:47
Struct about league table elements.
Definition league_base.h:32
static SaveLoad Variable(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion, size_t extra=0)
Storage of a variable in some savegame versions.
Definition saveload.h:926
static SaveLoad String(std::string name, AddressFunction< T > address_func, StringValidationSettings string_validation_settings={}, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion, size_t extra=0)
Storage of a string in some savegame versions.
Definition saveload.h:977

Definition at line 18 of file league_sl.cpp.

◆ _league_tables_desc

const SaveLoad _league_tables_desc[]
static

◆ LEAE

const LEAEChunkHandler LEAE
static

Definition at line 85 of file league_sl.cpp.

◆ league_chunk_handlers

const ChunkHandlerRef league_chunk_handlers[]
static
Initial value:
= {
LEAE,
LEAT,
}

Definition at line 87 of file league_sl.cpp.

◆ LEAT

const LEATChunkHandler LEAT
static

Definition at line 86 of file league_sl.cpp.