diff options
author | Paul Gilbert | 2016-02-18 21:12:22 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-02-18 21:12:22 -0500 |
commit | 9b173df32f65ec4eec9b9acf800a2541ccf74678 (patch) | |
tree | c29d681fc4a4f82c3c33e78d80221e84823c627c /engines/titanic/objects/saveable_object.h | |
parent | c4a0d4923afa6cded68ba2863c2df30fd38d1455 (diff) | |
download | scummvm-rg350-9b173df32f65ec4eec9b9acf800a2541ccf74678.tar.gz scummvm-rg350-9b173df32f65ec4eec9b9acf800a2541ccf74678.tar.bz2 scummvm-rg350-9b173df32f65ec4eec9b9acf800a2541ccf74678.zip |
TITANIC: Implement CSaveableObject saving methods
Diffstat (limited to 'engines/titanic/objects/saveable_object.h')
-rw-r--r-- | engines/titanic/objects/saveable_object.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/engines/titanic/objects/saveable_object.h b/engines/titanic/objects/saveable_object.h index 5253892f51..e99d8c5525 100644 --- a/engines/titanic/objects/saveable_object.h +++ b/engines/titanic/objects/saveable_object.h @@ -26,6 +26,7 @@ #include "common/scummsys.h" #include "common/array.h" #include "common/hash-str.h" +#include "titanic/simple_file.h" namespace Titanic { @@ -49,9 +50,32 @@ public: */ static CSaveableObject *createInstance(const Common::String &name); public: - virtual void proc4(); - virtual void proc5(); - virtual void proc6(); + /** + * Return the class name + */ + virtual const char *getClassName() const { return "CSaveableObject"; } + + /** + * Save the data for the class to file + */ + virtual void save(SimpleFile *file, int indent); + + /** + * Load the data for the class from file + */ + virtual void load(SimpleFile *file); + + /** + * Write out a header definition for the class to file + * prior to saving the actual data for the class + */ + virtual void saveHeader(SimpleFile *file, int indent); + + /** + * Writes out a footer for the class after it's data has + * been written to file + */ + virtual void saveFooter(SimpleFile *file, int indent); }; } // End of namespace Titanic |