Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (36 sloc) 1.215 kb
c34e69b @is06 Added structs for save data system
authored
1 /******************************************************************************
2 Invisible Spirit by Thomas Noury is licensed under a Creative Commons
3 Attribution-NonCommercial-ShareAlike 3.0 Unported License. Based on a work at
4 is06.com. Permissions beyond the scope of this license may be available at
5 http://www.is06.com. Legal code in license.txt
6 *******************************************************************************/
7
8 #ifndef __IS06_SAVE_H__
9 #define __IS06_SAVE_H__
10
a9f38a9 Game engine updated after enum restructuration
MTLZ authored
11 #include "enums/engine/SceneIdentifier.h"
26d28e9 @is06 Better includes in all source files
authored
12
c34e69b @is06 Added structs for save data system
authored
13 using namespace irr;
14 using namespace std;
15
bcfb326 @is06 Refactoring syntax
authored
16 class Save
17 {
c34e69b @is06 Added structs for save data system
authored
18 public:
19 Save();
20 ~Save();
21
6e8dde4 @is06 Some minor changes
authored
22 void load(u8 slot);
23 void write(u8 slot);
c34e69b @is06 Added structs for save data system
authored
24 void createNewFile();
25
17a90f3 New save system
MTLZ authored
26 s32& getInteger(u32 index);
27 bool& getBoolean(u32 index);
df40913 @is06 From Irrlicht strings to Standard-C lib string: OMG! It works and the
authored
28 wstring& getString(u32 index);
d0c7c9f @is06 Save structure simpler
authored
29
92ce1f8 @is06 Total game time counter added
authored
30 void setInteger(u32 index, s32 value);
5b91ed6 @is06 Added World Time Counter class for day/night cycle
authored
31 void incInteger(u32 index, s32 value);
32 void decInteger(u32 index, s32 value);
92ce1f8 @is06 Total game time counter added
authored
33 void setBoolean(u32 index, bool value);
df40913 @is06 From Irrlicht strings to Standard-C lib string: OMG! It works and the
authored
34 void setString(u32 index, const wstring& value);
92ce1f8 @is06 Total game time counter added
authored
35
17a90f3 New save system
MTLZ authored
36 private:
6e8dde4 @is06 Some minor changes
authored
37 // Data maps
17a90f3 New save system
MTLZ authored
38 map<u32, s32> integerList;
39 map<u32, bool> booleanList;
df40913 @is06 From Irrlicht strings to Standard-C lib string: OMG! It works and the
authored
40 map<u32, wstring> stringList;
d0c7c9f @is06 Save structure simpler
authored
41
17a90f3 New save system
MTLZ authored
42 // Default values
43 void setGeneralDefaultValues();
c34e69b @is06 Added structs for save data system
authored
44 };
45
46 #endif
Something went wrong with that request. Please try again.