22 #ifndef ASYLUM_SYSTEM_SAVEGAME_H 23 #define ASYLUM_SYSTEM_SAVEGAME_H 25 #include "common/savefile.h" 26 #include "common/serializer.h" 27 #include "common/util.h" 29 #include "asylum/shared.h" 33 #define SAVEGAME_COUNT 25 169 void setMovieViewed(uint32 index);
170 uint32 getMoviesViewed(int32 *movieList)
const;
171 void loadMoviesViewed();
180 void setIndex(uint32 index) { _index = index; }
181 uint32 getIndex() {
return _index; }
183 bool hasSavegame(uint32 index)
const;
184 ResourcePackId getScenePack() {
return (ResourcePackId)(_savegameToScene[_index] + 4); }
187 const char *getVersion() {
return _version.c_str(); }
188 uint32 getBuild() {
return _build; }
194 byte _moviesViewed[196];
195 uint32 _savegameToScene[SAVEGAME_COUNT];
196 bool _savegames[SAVEGAME_COUNT];
263 #endif // ASYLUM_SYSTEM_SAVEGAME_H
bool hasSavegames() const
static uint32 read(Common::InSaveFile *file, const Common::String &description)
Definition: savefile.h:54
static void write(Common::OutSaveFile *file, uint32 val, const Common::String &description)
Definition: savegame.h:37
static void seek(Common::InSaveFile *file, uint32 offset, const Common::String &description)
Definition: serializer.h:308