diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-15 09:58:24 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-15 09:58:24 +0200 |
commit | 380d9ec6048663b0e497e2437222d783236b864f (patch) | |
tree | 635fd93e6902c696abe31526da1fc15db7f2d516 /DiscoBot/DSA_Game/Dsa.cs | |
parent | c00b3bbf39ae2756aecceaa54b3a87a0e3955a9e (diff) |
Added Properties Class
auto load last settings
removed sound enumerable
moved Sonds to properties
moved Commands to properties
Diffstat (limited to 'DiscoBot/DSA_Game/Dsa.cs')
-rw-r--r-- | DiscoBot/DSA_Game/Dsa.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/DiscoBot/DSA_Game/Dsa.cs b/DiscoBot/DSA_Game/Dsa.cs index e514691..c6ea1c3 100644 --- a/DiscoBot/DSA_Game/Dsa.cs +++ b/DiscoBot/DSA_Game/Dsa.cs @@ -6,7 +6,9 @@ using DiscoBot.Audio; using DiscoBot.Auxiliary; + using DiscoBot.Commands; using DiscoBot.DSA_Game.Characters; + using DiscoBot.DSA_Game.Save; using Discord.Commands; @@ -21,6 +23,8 @@ public static List<ICharacter> Chars { get; set; } = new List<ICharacter>(); // list of all characters public static List<Talent> Talente { get; set; } = new List<Talent>(); + + public static Properties Properties { get; set; } public static void Startup() { @@ -53,6 +57,9 @@ .Where(c => !Talente.Exists(v => v.Name.Equals(c.Name))).ToList().ForEach(v => Talente.Add(v)); } + Properties = Save.Properties.Deserialize(); + Properties.Serialize(); + Talente = Talente.OrderBy(x => x.Name).ToList(); } } |