The-Powder-Toy/src/client/SaveFile.h
jacob1 63843c2bd7 add new minimumVersion setting in saves, can restrict the smallest version of TPT that is able to open the save. Uses major/minor version for this
Also add RESTRICTVERSION macro to help when adding restrictions later
Also show errors when opening broken stamps now too
2015-10-02 21:25:15 -04:00

35 lines
705 B
C++

#ifndef SAVEFILE_H_
#define SAVEFILE_H_
#include <string>
class GameSave;
class Thumbnail;
class SaveFile {
public:
SaveFile(SaveFile & save);
SaveFile(std::string filename);
Thumbnail * GetThumbnail();
GameSave * GetGameSave();
void SetThumbnail(Thumbnail * thumb);
void SetGameSave(GameSave * save);
std::string GetDisplayName();
void SetDisplayName(std::string displayName);
std::string GetName();
void SetFileName(std::string fileName);
std::string GetError();
void SetLoadingError(std::string error);
virtual ~SaveFile();
private:
Thumbnail * thumbnail;
GameSave * gameSave;
std::string filename;
std::string displayName;
std::string loadingError;
};
#endif /* SAVEFILE_H_ */