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.
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.
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.