aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/SaveSystem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Engine/SaveSystem.cs')
-rw-r--r--ShiftOS.Engine/SaveSystem.cs75
1 files changed, 75 insertions, 0 deletions
diff --git a/ShiftOS.Engine/SaveSystem.cs b/ShiftOS.Engine/SaveSystem.cs
index 59ddf4b..51924d0 100644
--- a/ShiftOS.Engine/SaveSystem.cs
+++ b/ShiftOS.Engine/SaveSystem.cs
@@ -16,6 +16,13 @@ namespace ShiftOS.Engine
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ShiftOS-Rewind");
}
}
+ public static string dataDir
+ {
+ get
+ {
+ return gameDir + "\\Data";
+ }
+ }
public static string fontDir
{
get
@@ -23,5 +30,73 @@ namespace ShiftOS.Engine
return gameDir + "\\Fonts";
}
}
+ public static string baseGameDir
+ {
+ get
+ {
+ return gameDir + "\\GameData";
+ }
+ }
+ public static string homeDir
+ {
+ get
+ {
+ return baseGameDir + "\\Home";
+ }
+ }
+ public static string desktopDir
+ {
+ get
+ {
+ return homeDir + "\\Desktop";
+ }
+ }
+ public static string docDir
+ {
+ get
+ {
+ return homeDir + "\\Documents";
+ }
+ }
+ public static string downloadsDir
+ {
+ get
+ {
+ return homeDir + "\\Downloads";
+ }
+ }
+ public static string musicDir
+ {
+ get
+ {
+ return homeDir + "\\Music";
+ }
+ }
+ public static string picDir
+ {
+ get { return homeDir + "\\Pictures"; }
+ }
+ public static class User
+ {
+ public static int codePoints
+ {
+ get
+ {
+ return 0;
+ }
+ set
+ {
+
+ }
+ }
+ public static void AddToCodePoints(int amountToAdd)
+ {
+ codePoints += amountToAdd;
+ using (var fs = File.OpenWrite(dataDir + "\\userCodePoints.whoa"))
+ {
+ Whoa.Whoa.SerialiseObject(fs, codePoints);
+ }
+ }
+ }
}
}