12 #include "../stdafx.h" 14 #include "../company_base.h" 18 #include "../safeguards.h" 20 static const SaveLoad _group_desc[] = {
34 static void Save_GRPS()
39 SlSetArrayIndex(g->
index);
45 static void Load_GRPS()
64 {
'GRPS', Save_GRPS, Load_GRPS, NULL, NULL, CH_ARRAY |
CH_LAST},
#define SLE_CONDNULL(length, from, to)
Empty space in some savegame versions.
static bool IsSavegameVersionBefore(SaveLoadVersion major, byte minor=0)
Checks whether the savegame is below major.
#define SLE_CONDSTR(base, variable, type, length, from, to)
Storage of a string in some savegame versions.
static Titem * Get(size_t index)
Returns Titem with given index.
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.
205 PR#7108 Livery storage change and group liveries.
allow control codes in the strings
189 26450 Heirarchical vehicle subgroups
static const GroupID INVALID_GROUP
Sentinel for invalid groups.
byte colour2
Second colour, for vehicles with 2CC support.
int SlIterateArray()
Iterate through the elements of an array and read the whole thing.
Handlers and description of chunk.
Livery livery
Custom colour scheme for vehicles in this group.
#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.
OwnerByte owner
Group Owner.
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
byte colour1
First colour, for all vehicles.
#define SLE_STR(base, variable, type, length)
Storage of a string in every savegame version.
Last chunk in this array.