OpenTTD Source 20260711-master-g3fb3006dff
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:
= {
}
@ I32
A 32 bit signed int.
Definition saveload.h:683
@ U8
A 8 bit unsigned int.
Definition saveload.h:662
@ I16
A 16 bit signed int.
Definition saveload.h:663
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
Definition saveload.h:958
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition saveload.h:904
@ ReplaceCustomNameArray
Saveload version: 84, SVN revision: 11822 Replace single fixed size array of custom names,...
Definition saveload.h:144
@ SignTextColours
Saveload version: 363, GitHub pull request: 14743 Configurable sign text colors in scenario editor.
Definition saveload.h:415
@ VehicleCentreAndZPos
Saveload version: 164, SVN revision: 23290 Vehicle centres are not fixed at 4/8 of the vehicle; chan...
Definition saveload.h:240
@ BigMap
Saveload version: 5.0, SVN revision: 1429 Making maps a different size than 256x256.
Definition saveload.h:44
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:47
@ MinVersion
First savegame version.
Definition saveload.h:31
@ MaxVersion
Highest possible saveload version.
Definition saveload.h:421
@ AllowControlCode
Allow the special control codes.
Definition string_type.h:47
static constexpr VarType U8
Store a 8 bits unsigned int.
Definition saveload.h:752
static constexpr VarType STR
Store string.
Definition saveload.h:760
static constexpr VarType NAME
A string stored in the custom string array.
Definition saveload.h:762
static constexpr VarType I32
Store a 32 bits signed int.
Definition saveload.h:755

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.