OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #include "../stdafx.h"
15 #include "../signs_base.h"
18 #include "../safeguards.h"
41 SlSetArrayIndex(si->index);
@ OWNER_DEITY
The object is owned by a superuser / goal script.
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
@ FT_SCENARIO
old or new scenario
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
std::reference_wrapper< const ChunkHandler > ChunkHandlerRef
A reference to ChunkHandler.
@ INVALID_OWNER
An invalid owner.
@ SL_MIN_VERSION
First savegame version.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
const SaveLoadCompat _sign_sl_compat[]
Original field order for _sign_desc.
Handlers and description of chunk.
AbstractFileType abstract_ftype
Abstract type of file (scenario, heightmap, etc).
@ SLF_ALLOW_CONTROL
Allow control codes in the strings.
static const SaveLoad _sign_desc[]
Description of a sign within the savegame.
void Load() const override
Load the chunk.
@ OWNER_NONE
The tile has no ownership.
@ SL_MAX_VERSION
Highest possible saveload version.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
void Save() const override
Save the chunk.
FileToSaveLoad _file_to_saveload
File to save or load in the openttd loop.
std::span< const ChunkHandlerRef > ChunkHandlerTable
A table of ChunkHandler entries.
std::vector< SaveLoad > SlCompatTableHeader(const SaveLoadTable &slt, const SaveLoadCompatTable &slct)
Load a table header in a savegame compatible way.
void SlObject(void *object, const SaveLoadTable &slt)
Main SaveLoad function.
bool IsSavegameVersionBefore(SaveLoadVersion major, uint8_t minor=0)
Checks whether the savegame is below major.
std::vector< SaveLoad > SlTableHeader(const SaveLoadTable &slt)
Save or Load a table header.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.