12 #include "../stdafx.h" 13 #include "../subsidy_base.h" 17 #include "../safeguards.h" 19 static const SaveLoad _subsidies_desc[] = {
32 static void Save_SUBS()
35 FOR_ALL_SUBSIDIES(s) {
36 SlSetArrayIndex(s->
index);
41 static void Load_SUBS()
51 {
'SUBS', Save_SUBS, Load_SUBS, NULL, NULL, CH_ARRAY |
CH_LAST},
Tindex index
Index of this pool item.
Functions/types related to saving and loading games.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
#define SL_MAX_VERSION
Highest possible savegame version.
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.
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.