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},
Functions/types related to saving and loading games.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Highest possible saveload version.
5.0 1429 5.1 1440 5.2 1525 0.3.6
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.
Handlers and description of chunk.
Struct about subsidies, offered and awarded.
#define SLE_END()
End marker of a struct/class save or load.
static Pool::IterateWrapper< Titem > Iterate(size_t from=0)
Returns an iterable ensemble of all valid Titem.
void SlObject(void *object, const SaveLoad *sld)
Main SaveLoad function.
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Last chunk in this array.