OpenTTD Source
1.11.0-beta2
|
#include <saveload.h>
Data Fields | |
SaveLoadType | cmd |
the action to take with the saved/loaded type, All types need different action | |
VarType | conv |
type of the variable to be saved, int | |
uint16 | length |
(conditional) length of the variable (eg. arrays) (max array size is 65536 elements) | |
SaveLoadVersion | version_from |
save/load the variable starting from this savegame version | |
SaveLoadVersion | version_to |
save/load the variable until this savegame version | |
size_t | size |
the sizeof size. | |
SaveLoadAddrProc * | address_proc |
callback proc the get the actual variable address in memory | |
size_t | extra_data |
extra data for the callback proc | |
SaveLoad type struct.
Do NOT use this directly but use the SLE_ macros defined just below!
Definition at line 516 of file saveload.h.