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];
Definition: savegame.h:37
static uint32 read(Common::InSaveFile *file, const Common::String &description)
static void write(Common::OutSaveFile *file, uint32 val, const Common::String &description)
static void write(Common::OutSaveFile *file, const Common::String &val, uint32 strLength, const Common::String &description)
static void write(Common::OutSaveFile *file, Common::Serializable *data, uint32 size, uint32 count, const Common::String &description)
static void seek(Common::InSaveFile *file, uint32 offset, const Common::String &description)
bool hasSavegames() const
static void read(Common::InSaveFile *file, Common::Serializable *data, uint32 size, uint32 count, const Common::String &description)
static Common::String read(Common::InSaveFile *file, uint32 strLength, const Common::String &description)
Definition: savefile.h:54
Definition: serializer.h:352