OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../subsidy_base.h"
15 #include "../safeguards.h"
17 static const SaveLoad _subsidies_desc[] = {
30 static void Save_SUBS()
33 SlSetArrayIndex(s->index);
38 static void Load_SUBS()
48 {
'SUBS', Save_SUBS, Load_SUBS,
nullptr,
nullptr, CH_ARRAY |
CH_LAST},
@ SL_MIN_VERSION
First savegame version.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
@ CH_LAST
Last chunk in this array.
Handlers and description of chunk.
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
Struct about subsidies, offered and awarded.
#define SLE_END()
End marker of a struct/class save or load.
void SlObject(void *object, const SaveLoad *sld)
Main SaveLoad function.
@ SL_MAX_VERSION
Highest possible saveload version.
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.