OpenTTD Source 20241224-master-gf74b0cf984
|
Declaration of filters used for saving and loading savegames. More...
Go to the source code of this file.
Data Structures | |
struct | LoadFilter |
Interface for filtering a savegame till it is loaded. More... | |
struct | SaveFilter |
Interface for filtering a savegame till it is written. More... | |
Functions | |
template<typename T > | |
std::shared_ptr< LoadFilter > | CreateLoadFilter (std::shared_ptr< LoadFilter > chain) |
Instantiator for a load filter. | |
template<typename T > | |
std::shared_ptr< SaveFilter > | CreateSaveFilter (std::shared_ptr< SaveFilter > chain, uint8_t compression_level) |
Instantiator for a save filter. | |
Declaration of filters used for saving and loading savegames.
Definition in file saveload_filter.h.
std::shared_ptr< LoadFilter > CreateLoadFilter | ( | std::shared_ptr< LoadFilter > | chain | ) |
Instantiator for a load filter.
chain | The next filter in this chain. |
T | The type of load filter to create. |
Definition at line 51 of file saveload_filter.h.
std::shared_ptr< SaveFilter > CreateSaveFilter | ( | std::shared_ptr< SaveFilter > | chain, |
uint8_t | compression_level | ||
) |
Instantiator for a save filter.
chain | The next filter in this chain. |
compression_level | The requested level of compression. |
T | The type of save filter to create. |
Definition at line 94 of file saveload_filter.h.