mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Saveload: Add table header only save load struct handler helper
This commit is contained in:
parent
daf77f5ab1
commit
7d77f8acf4
@ -283,4 +283,12 @@ public:
|
||||
void FixPointers(void *object) const override { static_cast<const TImpl *>(this)->FixPointers(static_cast<TObject *>(object)); }
|
||||
};
|
||||
|
||||
class HeaderOnlySaveLoadStructHandler : public SaveLoadStructHandler {
|
||||
public:
|
||||
void Save(void *object) const override { NOT_REACHED(); }
|
||||
void Load(void *object) const override { NOT_REACHED(); }
|
||||
void LoadCheck(void *object) const override { NOT_REACHED(); }
|
||||
void FixPointers(void *object) const override { NOT_REACHED(); }
|
||||
};
|
||||
|
||||
#endif /* SL_SAVELOAD_TYPES_H */
|
||||
|
Loading…
Reference in New Issue
Block a user