12 #include "../stdafx.h" 13 #include "../goal_base.h" 17 #include "../safeguards.h" 19 static const SaveLoad _goals_desc[] = {
29 static void Save_GOAL()
33 SlSetArrayIndex(s->
index);
38 static void Load_GOAL()
48 {
'GOAL', Save_GOAL, Load_GOAL, NULL, NULL, CH_ARRAY |
CH_LAST},
#define SLE_CONDSTR(base, variable, type, length, from, to)
Storage of a string in some savegame versions.
Struct about goals, current and completed.
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.
allow control codes in the strings
#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.
#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.
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
Last chunk in this array.