Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../goal_base.h"
15 #include "../safeguards.h"
17 static const SaveLoad _goals_desc[] = {
27 static void Save_GOAL()
30 SlSetArrayIndex(s->index);
35 static void Load_GOAL()
45 {
'GOAL', Save_GOAL, Load_GOAL,
nullptr,
nullptr, CH_ARRAY |
CH_LAST},
Struct about goals, current and completed.
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
@ CH_LAST
Last chunk in this array.
Handlers and description of chunk.
@ SLF_ALLOW_CONTROL
allow control codes in the strings
#define SLE_END()
End marker of a struct/class save or load.
void SlObject(void *object, const SaveLoad *sld)
Main SaveLoad function.
@ SLV_182
182 25115 FS#5492, r25259, r25296 Goal status
@ SL_MAX_VERSION
Highest possible saveload version.
#define SLE_CONDSTR(base, variable, type, length, from, to)
Storage of a string in some savegame versions.
#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.