|
OpenTTD Source 20251104-master-g3befbdd52f
|
Handler that is assigned when there is a struct read in the savegame which is not known to the code. More...
Private Member Functions | |
| void | Save (void *) const override |
| Save the object to disk. | |
| void | Load (void *object) const override |
| Load the object from disk. | |
| void | LoadCheck (void *object) const override |
| Similar to load, but used only to validate savegames. | |
| virtual SaveLoadTable | GetDescription () const override |
| Get the description of the fields in the savegame. | |
| virtual SaveLoadCompatTable | GetCompatDescription () const override |
| Get the pre-header description of the fields in the savegame. | |
Additional Inherited Members | |
Public Member Functions inherited from SaveLoadHandler | |
| virtual void | FixPointers (void *object) const |
| A post-load callback to fix SL_REF integers into pointers. | |
| SaveLoadTable | GetLoadDescription () const |
| Get the description for how to load the chunk. | |
Data Fields inherited from SaveLoadHandler | |
| std::optional< std::vector< SaveLoad > > | load_description |
Handler that is assigned when there is a struct read in the savegame which is not known to the code.
This means we are going to skip it.
Definition at line 1863 of file saveload.cpp.
|
inlineoverrideprivatevirtual |
Get the pre-header description of the fields in the savegame.
Implements SaveLoadHandler.
Definition at line 1887 of file saveload.cpp.
|
inlineoverrideprivatevirtual |
Get the description of the fields in the savegame.
Implements SaveLoadHandler.
Definition at line 1882 of file saveload.cpp.
|
inlineoverrideprivatevirtual |
Load the object from disk.
| object | The object to load. |
Reimplemented from SaveLoadHandler.
Definition at line 1869 of file saveload.cpp.
References SaveLoadHandler::GetLoadDescription(), SlGetStructListLength(), and SlObject().
Referenced by LoadCheck().
|
inlineoverrideprivatevirtual |
Similar to load, but used only to validate savegames.
| object | The object to load. |
Reimplemented from SaveLoadHandler.
Definition at line 1877 of file saveload.cpp.
References Load().
|
inlineoverrideprivatevirtual |
Save the object to disk.
| object | The object to store. |
Reimplemented from SaveLoadHandler.
Definition at line 1864 of file saveload.cpp.