OpenTTD Source: SaveLoad Struct Reference

OpenTTD Source 12.0-beta1

Data Fields
SaveLoad Struct Reference

SaveLoad type struct. More...

`#include <saveload.h>`

## Data Fields
std::string | name
| Name of this field (optional, used for tables).
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; this field combines both FileVarType and MemVarType.
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 before 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.
std::shared_ptr< SaveLoadHandler > | handler
| Custom handler for Save/Load procs.

## Detailed Description

SaveLoad type struct.

Do NOT use this directly but use the SLE_ macros defined just below!

Definition at line 652 of file saveload.h.

The documentation for this struct was generated from the following file:

- src/saveload/saveload.h