diff options
| author | AShifter <[email protected]> | 2017-11-25 08:59:48 -0700 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-11-25 08:59:48 -0700 |
| commit | c81573594f509177214bbc9b64427c8aabdc30a6 (patch) | |
| tree | 0f16be1fffc1e1557adafbd1baa9ff7aa16a3381 /ShiftOS.Engine/SaveSystem.cs | |
| parent | 90b1bdca5f8f2bf634a0b83ed9b623843ada5661 (diff) | |
| download | shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.tar.gz shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.tar.bz2 shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.zip | |
Add SaveSystem, FullScreen Terminal and stuff
Git had a horrible seizure and removed our repo but Alex-TIMEHACK helped
us get it back.
Diffstat (limited to 'ShiftOS.Engine/SaveSystem.cs')
| -rw-r--r-- | ShiftOS.Engine/SaveSystem.cs | 75 |
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); + } + } + } } } |
