OpenTTD
signs_sl.cpp File Reference

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

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

Go to the source code of this file.

Functions

static void Save_SIGN ()
 Save all signs.
 
static void Load_SIGN ()
 Load all signs.
 

Variables

static const SaveLoad _sign_desc []
 Description of a sign within the savegame. More...
 
const ChunkHandler _sign_chunk_handlers []
 Chunk handlers related to signs. More...
 

Detailed Description

Code handling saving and loading of economy data.

Definition in file signs_sl.cpp.

Variable Documentation

◆ _sign_chunk_handlers

const ChunkHandler _sign_chunk_handlers[]
Initial value:
= {
{ 'SIGN', Save_SIGN, Load_SIGN, NULL, NULL, CH_ARRAY | CH_LAST},
}
static void Load_SIGN()
Load all signs.
Definition: signs_sl.cpp:46
static void Save_SIGN()
Save all signs.
Definition: signs_sl.cpp:35
Last chunk in this array.
Definition: saveload.h:381

Chunk handlers related to signs.

Referenced by Load_SIGN().

◆ _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, z, SLE_FILE_U8 | SLE_VAR_I32, SL_MIN_VERSION, SLV_164),
}
#define SLE_CONDSTR(base, variable, type, length, from, to)
Storage of a string in some savegame versions.
Definition: saveload.h:556
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition: saveload.h:524
Highest possible saveload version.
Definition: saveload.h:295
allow control codes in the strings
Definition: saveload.h:461
5.0 1429 5.1 1440 5.2 1525 0.3.6
Definition: saveload.h:44
First savegame version.
Definition: saveload.h:32
84 11822
Definition: saveload.h:144
6.0 1721 6.1 1768
Definition: saveload.h:47
164 23290
Definition: saveload.h:240
Owner owner
The owner of the content shown in this window. Company colour is acquired from this variable...
Definition: window_gui.h:326
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
Definition: saveload.h:610

Description of a sign within the savegame.

Definition at line 21 of file signs_sl.cpp.