1 #ifndef DENGINE_GAMESAVE_H     2 #define DENGINE_GAMESAVE_H    29         virtual void Write(
const std::string filename) = 0;
    37         virtual void Read(
const std::string filename) = 0;
    63 #endif //DENGINE_GAMESAVE_H virtual void Read(const std::string filename)=0
Function to read a savegame from disk. 
std::vector< GameObject * > Objects
Objects to be saved. 
Definition: GameSave.h:59
A GameSave file GameSave is an abstract class that should be overwritten by the Game code...
Definition: GameSave.h:17
A base object for a game The gameobject can be considered the most basic building block of a game...
Definition: GameObject.h:19
virtual void Write(const std::string filename)=0
Function to write the savegame to disk. 
void AddObject(GameObject *object)
Add an object to the Objects vector to be saved. 
Definition: GameSave.h:44
~GameSave()
Definition: GameSave.h:20
The namespace containing the engine's code. 
Definition: Collider.h:9
std::vector< GameObject * > GetObjects()
Returns a vector containing all currently stored objects. 
Definition: GameSave.h:52