- Separate Playtoons gametypes from in GobEngine::initGameParts()
- Add a specific save/load class for Playtoons as some specific files need to be tested svn-id: r42214
This commit is contained in:
parent
a9aaf56b3e
commit
a0ab8c9c0c
8 changed files with 146 additions and 3 deletions
|
@ -445,6 +445,30 @@ protected:
|
|||
SaveFile *getSaveFile(const char *fileName);
|
||||
};
|
||||
|
||||
/** Save/Load class for Playtoons. */
|
||||
class SaveLoad_playtoons : public SaveLoad {
|
||||
public:
|
||||
SaveLoad_playtoons(GobEngine *vm);
|
||||
virtual ~SaveLoad_playtoons();
|
||||
|
||||
protected:
|
||||
struct SaveFile {
|
||||
const char *sourceName;
|
||||
SaveMode mode;
|
||||
SaveHandler *handler;
|
||||
const char *description;
|
||||
};
|
||||
|
||||
static SaveFile _saveFiles[];
|
||||
|
||||
SaveMode getSaveMode(const char *fileName) const;
|
||||
|
||||
const SaveFile *getSaveFile(const char *fileName) const;
|
||||
|
||||
SaveFile *getSaveFile(const char *fileName);
|
||||
|
||||
};
|
||||
|
||||
} // End of namespace Gob
|
||||
|
||||
#endif // GOB_SAVE_SAVELOAD_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue