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

Code handling saving and loading of economy data. More...

#include "../stdafx.h"
#include "saveload.h"
#include "compat/signs_sl_compat.h"
#include "../signs_base.h"
#include "../fios.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  SIGNChunkHandler

Functions

const ChunkHandlerTable _sign_chunk_handlers (sign_chunk_handlers)

Variables

static const SaveLoad _sign_desc []
 Description of a sign within the savegame.
static const SIGNChunkHandler SIGN
static const ChunkHandlerRef sign_chunk_handlers []

Detailed Description

Code handling saving and loading of economy data.

Definition in file signs_sl.cpp.

Variable Documentation

◆ _sign_desc

const SaveLoad _sign_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
@ ReplaceCustomNameArray
Saveload version: 84, SVN revision: 11822 Replace single fixed size array of custom names,...
Definition saveload.h:150
@ SignTextColours
Saveload version: 363, GitHub pull request: 14743 Configurable sign text colors in scenario editor.
Definition saveload.h:421
@ VehicleCentreAndZPos
Saveload version: 164, SVN revision: 23290 Vehicle centres are not fixed at 4/8 of the vehicle; chan...
Definition saveload.h:246
@ BigMap
Saveload version: 5.0, SVN revision: 1429 Making maps a different size than 256x256.
Definition saveload.h:50
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:53
@ MinVersion
First savegame version.
Definition saveload.h:37
@ AllowControlCode
Allow the special control codes.
Definition string_type.h:47
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

Description of a sign within the savegame.

Definition at line 21 of file signs_sl.cpp.

Referenced by SIGNChunkHandler::Load(), and SIGNChunkHandler::Save().

◆ SIGN

const SIGNChunkHandler SIGN
static

Definition at line 73 of file signs_sl.cpp.

◆ sign_chunk_handlers

const ChunkHandlerRef sign_chunk_handlers[]
static
Initial value:
= {
SIGN,
}

Definition at line 74 of file signs_sl.cpp.