OpenTTD Source
20241108-master-g80f628063a
|
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? | |
uint8_t | 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. | |
The saveload struct, containing reader-writer functions, buffer, version, etc.
Definition at line 178 of file saveload.cpp.