GameScript: Move initialization out of constructor.
[gemrb.git] / gemrb / core / SaveGameMgr.h
blob7f0c378e2f9b94f1d2c854d7b8ecd45b5f86b4a4
1 /* GemRB - Infinity Engine Emulator
2 * Copyright (C) 2003 The GemRB Project
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef SAVEGAMEMGR_H
21 #define SAVEGAMEMGR_H
23 #include "Plugin.h"
24 #include "DataStream.h"
25 #include "Game.h"
27 class GEM_EXPORT SaveGameMgr : public Plugin {
28 public:
29 SaveGameMgr(void);
30 virtual ~SaveGameMgr(void);
31 virtual bool Open(DataStream* stream, bool autoFree = true) = 0;
32 virtual Game* LoadGame(Game *newGame, int ver_override = 0) = 0;
34 virtual int GetStoredFileSize(Game *game) = 0;
35 virtual int PutGame(DataStream* stream, Game *game) = 0;
38 #endif