12 #include "../stdafx.h" 17 #include "../safeguards.h" 19 static const SaveLoad _group_desc[] = {
30 static void Save_GRPS()
35 SlSetArrayIndex(g->
index);
41 static void Load_GRPS()
54 {
'GRPS', Save_GRPS, Load_GRPS, NULL, NULL, CH_ARRAY |
CH_LAST},
#define SLE_CONDNULL(length, from, to)
Empty space in some savegame versions.
#define SLE_CONDSTR(base, variable, type, length, from, to)
Storage of a string in some savegame versions.
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
static const GroupID INVALID_GROUP
Sentinel for invalid groups.
#define SL_MAX_VERSION
Highest possible savegame version.
static bool IsSavegameVersionBefore(uint16 major, byte minor=0)
Checks whether the savegame is below major.
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.
GroupID parent
Parent group.
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.