OpenTTD Source 20241224-master-gee860a5c8e
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:
= {
SLE_CONDVAR(Sign, name, SLE_NAME, SL_MIN_VERSION, SLV_84),
SLE_CONDVAR(Sign, x, SLE_FILE_I16 | SLE_VAR_I32, SL_MIN_VERSION, SLV_5),
SLE_CONDVAR(Sign, y, SLE_FILE_I16 | SLE_VAR_I32, SL_MIN_VERSION, SLV_5),
SLE_CONDVAR(Sign, owner, SLE_UINT8, SLV_6, SL_MAX_VERSION),
SLE_CONDVAR(Sign, z, SLE_FILE_U8 | SLE_VAR_I32, SL_MIN_VERSION, SLV_164),
}
@ SLF_ALLOW_CONTROL
Allow control codes in the strings.
Definition saveload.h:688
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
Definition saveload.h:933
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition saveload.h:868
@ SLV_84
84 11822
Definition saveload.h:143
@ SLV_6
6.0 1721 6.1 1768
Definition saveload.h:46
@ SL_MAX_VERSION
Highest possible saveload version.
Definition saveload.h:399
@ SLV_164
164 23290
Definition saveload.h:239
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
Definition saveload.h:43

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 72 of file signs_sl.cpp.

◆ sign_chunk_handlers

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

Definition at line 73 of file signs_sl.cpp.