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

Code handling saving and loading of groups. More...

#include "../stdafx.h"
#include "../group.h"
#include "../company_base.h"
#include "saveload.h"
#include "compat/group_sl_compat.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  GRPSChunkHandler

Functions

const ChunkHandlerTable _group_chunk_handlers (group_chunk_handlers)

Variables

static const SaveLoad _group_desc []
static const GRPSChunkHandler GRPS
static const ChunkHandlerRef group_chunk_handlers []

Detailed Description

Code handling saving and loading of groups.

Definition in file group_sl.cpp.

Variable Documentation

◆ _group_desc

const SaveLoad _group_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
@ GroupHierarchy
Saveload version: 189, SVN revision: 26450 Hierarchical vehicle subgroups.
Definition saveload.h:276
@ ReplaceCustomNameArray
Saveload version: 84, SVN revision: 11822 Replace single fixed size array of custom names,...
Definition saveload.h:150
@ GroupLiveries
Saveload version: 205, GitHub pull request: 7108 Livery storage change and group liveries.
Definition saveload.h:296
@ MinVersion
First savegame version.
Definition saveload.h:37
@ GroupNumbers
Saveload version: 336, GitHub pull request: 12297 Add per-company group numbers.
Definition saveload.h:389
@ AllowControlCode
Allow the special control codes.
Definition string_type.h:47
Group data.
Definition group.h:76
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 19 of file group_sl.cpp.

◆ group_chunk_handlers

const ChunkHandlerRef group_chunk_handlers[]
static
Initial value:
= {
GRPS,
}

Definition at line 62 of file group_sl.cpp.

◆ GRPS

const GRPSChunkHandler GRPS
static

Definition at line 61 of file group_sl.cpp.