22 #ifndef GRIM_SAVEGAME_H 23 #define GRIM_SAVEGAME_H 25 #include "common/savefile.h" 27 #include "math/mathfwd.h" 53 bool isCompatible()
const;
55 uint saveMajorVersion()
const;
56 uint saveMinorVersion()
const;
57 uint32 beginSection(uint32 sectionTag);
59 void read(
void *data,
int size);
60 void write(
const void *data,
int size);
61 uint64 readLEUint64();
62 uint32 readLEUint32();
63 uint16 readLEUint16();
67 void writeLEUint64(uint64 data);
68 void writeLEUint32(uint32 data);
69 void writeLEUint16(uint16 data);
70 void writeLESint32(int32 data);
71 void writeBool(
bool data);
72 void writeByte(byte data);
75 void writeVector3d(
const Math::Vector3d &vec);
77 void writeFloat(
float data);
78 Math::Vector3d readVector3d();
83 void checkAlloc(
int size);
93 uint32 _currentSection;
99 static const int _allocAmmount = 1048576;
Definition: savefile.h:54
Definition: savegame.h:33
static uint SAVEGAME_MINOR_VERSION
Definition: savegame.h:51
static uint SAVEGAME_MAJOR_VERSION
Definition: savegame.h:44