OpenTTD Source
20241108-master-g80f628063a
|
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. More... | |
template<typename T > | |
std::shared_ptr< SaveFilter > | CreateSaveFilter (std::shared_ptr< SaveFilter > chain, uint8_t compression_level) |
Instantiator for a save filter. More... | |
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 53 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 98 of file saveload_filter.h.