diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
commit | 304437b834e8c87687f68333ae67a13ee1377a73 (patch) | |
tree | 51dd246568e8a159627d9cb92e99890adb5cbef8 /dsa/DSALib/DSA_Game/Dsa.cs | |
parent | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff) |
Adjust Codestyle
Diffstat (limited to 'dsa/DSALib/DSA_Game/Dsa.cs')
-rw-r--r-- | dsa/DSALib/DSA_Game/Dsa.cs | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/dsa/DSALib/DSA_Game/Dsa.cs b/dsa/DSALib/DSA_Game/Dsa.cs index bcd8951..42be212 100644 --- a/dsa/DSALib/DSA_Game/Dsa.cs +++ b/dsa/DSALib/DSA_Game/Dsa.cs @@ -1,16 +1,13 @@ using System; using System.Collections.Generic; using System.Linq; +using DSALib.Characters; using DSALib.DSA_Game.Characters; using DSALib.DSA_Game.Save; -using DSALib; -using DSALib.Characters; using DSALib.Models.Dsa; -namespace DSALib.DSA_Game -{ - public static class Dsa - { +namespace DSALib.DSA_Game { + public static class Dsa { #if DEBUG public const string rootPath = ""; //"C:\\Users\\Dennis\\Source\\Repos\\DiscoBot\\DSALib\\";//"DiscoBot\\DSALib\\"; @@ -25,23 +22,19 @@ namespace DSALib.DSA_Game public static List<Zauber> Zauber { get; set; } = new List<Zauber>(); - public static Session Session - { - get - { + public static Session Session { + get { s_session.Chars = Chars.Select(x => SaveChar.FromICharacter(x)).ToList(); return s_session; } - set - { + set { s_session = value; foreach (var x in value.Chars) Chars.Find(c => c.Name.Equals(x.Name)).Update(x); } } - public static void Startup() - { + public static void Startup() { //new .Auxiliary.Calculator.StringSolver("1d100 - (1d200 + 1) * -50000").Solve(); /*Session = new Session();*/ // relation.Add("Papo", "Pump aus der Gosse"); @@ -75,20 +68,17 @@ namespace DSALib.DSA_Game //new WeaponImporter().DownloadWeapons().Wait(); - Session = new Session - { + Session = new Session { Chars = Chars.Select(SaveChar.FromICharacter).ToList() }; //Session.Save(); } - public static ICharacter GetCharacter(ulong id) - { + public static ICharacter GetCharacter(ulong id) { throw new NotImplementedException(); } - public static ICharacter GetCharacter(string name, ulong groupId) - { + public static ICharacter GetCharacter(string name, ulong groupId) { throw new NotImplementedException(); } } |