summaryrefslogtreecommitdiff
path: root/DSACore/DSA_Game/Dsa.cs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-19 17:40:59 +0200
committernatrixaeria <janng@gmx.de>2019-05-19 17:40:59 +0200
commit1509b5ef3d7e9e71d9294e234ec0e39f2d831998 (patch)
tree78300ffff230958101b422a4e6026925b287822f /DSACore/DSA_Game/Dsa.cs
parentc3bb858bb54dc8c64bbd48054c2c58dc0073f09c (diff)
parentc4d046858e0822b7c2c540ac2368b2c0e88e7a26 (diff)
Merge branch 'scribble' of https://github.com/TrueDoctor/DiscoBot into scribble
Diffstat (limited to 'DSACore/DSA_Game/Dsa.cs')
-rw-r--r--DSACore/DSA_Game/Dsa.cs27
1 files changed, 10 insertions, 17 deletions
diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs
index cbdb734..18d0b81 100644
--- a/DSACore/DSA_Game/Dsa.cs
+++ b/DSACore/DSA_Game/Dsa.cs
@@ -1,28 +1,24 @@
using System;
-using DSACore.Auxiliary;
-using DSACore.FireBase;
+using System.Collections.Generic;
+using System.Linq;
+using DSACore.DSA_Game.Characters;
+using DSACore.DSA_Game.Save;
using DSALib;
using DSALib.Characters;
-using Microsoft.EntityFrameworkCore.Design;
namespace DSACore.DSA_Game
{
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using DSACore.DSA_Game.Characters;
- using DSACore.DSA_Game.Save;
-
public static class Dsa
{
#if DEBUG
- public const string rootPath = "";//"C:\\Users\\Dennis\\Source\\Repos\\DiscoBot\\DSACore\\";//"DiscoBot\\DSACore\\";
+ public const string
+ rootPath = ""; //"C:\\Users\\Dennis\\Source\\Repos\\DiscoBot\\DSACore\\";//"DiscoBot\\DSACore\\";
#else
public const string rootPath = "";//"DiscoBot\\DSACore\\";
#endif
private static Session s_session;
- public static List<ICharacter> Chars { get; set; } = new List<ICharacter>(); // list of all characters
+ public static List<ICharacter> Chars { get; set; } = new List<ICharacter>(); // list of all characters
public static List<Talent> Talente { get; set; } = new List<Talent>();
@@ -39,10 +35,7 @@ namespace DSACore.DSA_Game
set
{
s_session = value;
- foreach (var x in value.Chars)
- {
- Chars.Find(c => c.Name.Equals(x.Name)).Update(x);
- }
+ foreach (var x in value.Chars) Chars.Find(c => c.Name.Equals(x.Name)).Update(x);
}
}
@@ -61,9 +54,9 @@ namespace DSACore.DSA_Game
}
*/
- Properties.Deserialize(rootPath+"Properties");
+ Properties.Deserialize();
Properties.Serialize(rootPath + "Properties");
-
+
Talente = Talente.OrderBy(x => x.Name).ToList();
Zauber = Zauber.OrderBy(x => x.Name).ToList();