OpenTTD Source 20260721-master-g25ec12c62d
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:
= {
}
@ I64
A 64 bit signed int.
Definition saveload.h:659
@ U64
A 64 bit unsigned int.
Definition saveload.h:643
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition saveload.h:884
#define SLE_SSTR(base, variable, type)
Storage of a std::string in every savegame version.
Definition saveload.h:1041
@ LinkgraphEdges
Saveload version: 304, GitHub pull request: 10314 Explicitly store link graph edges destination,...
Definition saveload.h:347
@ MinVersion
First savegame version.
Definition saveload.h:34
@ MaxVersion
Highest possible saveload version.
Definition saveload.h:424
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition saveload.h:997
@ AllowControlCode
Allow the special control codes.
Definition string_type.h:47
Struct about league table elements.
Definition league_base.h:32
static constexpr VarType U8
Store a 8 bits unsigned int.
Definition saveload.h:727
static constexpr VarType STR
Store string.
Definition saveload.h:735
static constexpr VarType I64
Store a 64 bits signed int.
Definition saveload.h:732
static constexpr VarType U32
Store a 32 bits unsigned int.
Definition saveload.h:731

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.