OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../signs_base.h"
16 #include "../safeguards.h"
36 SlSetArrayIndex(si->index);
@ FT_SCENARIO
old or new scenario
@ SL_MIN_VERSION
First savegame version.
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
@ CH_LAST
Last chunk in this array.
Handlers and description of chunk.
static void Load_SIGN()
Load all signs.
static void Save_SIGN()
Save all signs.
AbstractFileType abstract_ftype
Abstract type of file (scenario, heightmap, etc).
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
@ SLF_ALLOW_CONTROL
allow control codes in the strings
static const SaveLoad _sign_desc[]
Description of a sign within the savegame.
@ INVALID_OWNER
An invalid owner.
#define SLE_END()
End marker of a struct/class save or load.
static bool IsSavegameVersionBefore(SaveLoadVersion major, byte minor=0)
Checks whether the savegame is below major.
const ChunkHandler _sign_chunk_handlers[]
Chunk handlers related to signs.
void SlObject(void *object, const SaveLoad *sld)
Main SaveLoad function.
@ SL_MAX_VERSION
Highest possible saveload version.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
FileToSaveLoad _file_to_saveload
File to save or load in the openttd loop.
@ OWNER_NONE
The tile has no ownership.
@ OWNER_DEITY
The object is owned by a superuser / goal script.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.