summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-03 23:16:17 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-03 23:16:17 +0200
commitd63ffc58db0f032cf7573b2a8a7720de2d5050ab (patch)
treed9a656651251bbd1eec233265ef824bf4b0389f0 /DiscoBot/DSA.cs
parent256154e2ab4244e7267ffc21959a4ce65c982783 (diff)
-General restructuring
-seperated talents and spells
Diffstat (limited to 'DiscoBot/DSA.cs')
-rw-r--r--DiscoBot/DSA.cs51
1 files changed, 0 insertions, 51 deletions
diff --git a/DiscoBot/DSA.cs b/DiscoBot/DSA.cs
deleted file mode 100644
index 0779988..0000000
--- a/DiscoBot/DSA.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-namespace DiscoBot
-{
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
-
- using DiscoBot.Audio;
- using DiscoBot.Auxiliary;
- using DiscoBot.Characters;
-
- using Discord.Commands;
-
- public static class Dsa
- {
- public static ICommandContext GeneralContext { get; set; }
-
- public static AudioService Service { get; set; }
-
- public static Dictionary<string, string> Relation { get; set; } = new Dictionary<string, string>(); // dictionary to match the char
-
- 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 void Startup()
- {
- Relation.Add("The Doctor", "Numeri Illuminus"); // Relation
- Relation.Add("Tardis", "Helga von Drachenei, Tausendsasserin"); // "Numeri Illuminus");
- Relation.Add("DSA Bot", "Morla"); // "Felis Exodus Schattenwald");
- Relation.Add("Morla", "Morla");
- Relation.Add("Rhoktar", "Rhoktar4");
- Relation.Add("MagicBro5", "Krenko");
- Relation.Add("Nicolas", "Hartmut Reiher");
- Relation.Add("TrueKuehli", "Ledur Torfinson");
-
- // relation.Add("Papo","Gwendelson");
- Relation.Add("Papo", "Pump aus der Gosse");
- Relation.Add("Potus", "Potus");
-
- // relation.Add("Papo", "Pump aus der Gosse");
- foreach (var filename in Directory.GetFiles("helden", "*.xml"))
- {
- Chars.Add(new Character(filename));
- (Chars.Last() as Character)?.Talente.Select(x => new Talent(x.Name, x.Probe, 0))
- .Where(c => !Talente.Exists(v => v.Name.Equals(c.Name))).ToList().ForEach(v => Talente.Add(v));
- }
-
- Talente = Talente.OrderBy(x => x.Name).ToList();
- }
- }
-} \ No newline at end of file