OpenTTD Source  20241121-master-g67a0fccfad
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?
 
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< MemoryDumperdumper
 Memory dumper to write the savegame to.
 
std::shared_ptr< SaveFiltersf
 Filter to write the savegame to.
 
std::unique_ptr< ReadBufferreader
 Savegame reading buffer.
 
std::shared_ptr< LoadFilterlf
 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 178 of file saveload.cpp.


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