summaryrefslogtreecommitdiff
path: root/DSACore/DSA_Game
diff options
context:
space:
mode:
Diffstat (limited to 'DSACore/DSA_Game')
-rw-r--r--DSACore/DSA_Game/Dsa.cs8
-rw-r--r--DSACore/DSA_Game/Save/Properties.cs2
2 files changed, 7 insertions, 3 deletions
diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs
index ff74788..7258e8c 100644
--- a/DSACore/DSA_Game/Dsa.cs
+++ b/DSACore/DSA_Game/Dsa.cs
@@ -13,6 +13,8 @@ namespace DSACore.DSA_Game
public static class Dsa
{
+ public const string rootPath = "DiscoBot\\DSACore\\";
+
private static Session s_session;
public static List<ICharacter> Chars { get; set; } = new List<ICharacter>(); // list of all characters
@@ -37,6 +39,8 @@ namespace DSACore.DSA_Game
}
}
+ public static void start(){}
+
public static void Startup()
{
//new .Auxiliary.Calculator.StringSolver("1d100 - (1d200 + 1) * -50000").Solve();
@@ -49,8 +53,8 @@ namespace DSACore.DSA_Game
.Where(c => !Talente.Exists(v => v.Name.Equals(c.Name))).ToList().ForEach(v => Talente.Add(v));
}
- Properties.Deserialize();
- Properties.Serialize();
+ Properties.Deserialize(rootPath+"Properties");
+ Properties.Serialize(rootPath + "Properties");
Talente = Talente.OrderBy(x => x.Name).ToList();
Session = new Session
diff --git a/DSACore/DSA_Game/Save/Properties.cs b/DSACore/DSA_Game/Save/Properties.cs
index f201431..caed278 100644
--- a/DSACore/DSA_Game/Save/Properties.cs
+++ b/DSACore/DSA_Game/Save/Properties.cs
@@ -35,7 +35,7 @@ namespace DSACore.DSA_Game.Save
set => objects["Sound"] = value;
}
- public static void Deserialize(string path = /*@"..\.."*/@"Properties")
+ public static void Deserialize(string path = @"Properties")
{
var files = Directory.GetFiles(path, "*.json");