OpenTTD Source: SaveLoadParams Struct Reference

OpenTTD Source 14.0-beta3

Data Fields
SaveLoadParams Struct Reference

The saveload struct, containing reader-writer functions, buffer, version, etc. More...

## Data Fields
SaveLoadAction | action
| are we doing a save or a load atm.
NeedLength | need_length
| working in NeedLength (Autolength) mode?
byte | block_mode
| ???
bool | error
| did an error occur or not
size_t | obj_len
| the length of the current object we are busy with
int | array_index
int | last_array_index
| in the case of an array, the current and last positions
bool | expect_table_header
| In the case of a table, if the header is saved/loaded.
std::unique_ptr< MemoryDumper > | dumper
| Memory dumper to write the savegame to.
std::shared_ptr< SaveFilter > | sf
| Filter to write the savegame to.
std::unique_ptr< ReadBuffer > | reader
| Savegame reading buffer.
std::shared_ptr< LoadFilter > | lf
| Filter to read the savegame from.
StringID | error_str
| the translatable error message to show
std::string | extra_msg
| the error message
bool | saveinprogress
| Whether there is currently a save in progress.

## Detailed Description

The saveload struct, containing reader-writer functions, buffer, version, etc.

Definition at line 191 of file saveload.cpp.

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

- src/saveload/saveload.cpp