From 6285967d1cf6e9322f584de761eea31ade32b3e5 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 1 Oct 2018 02:28:42 +0200 Subject: Completed Weapon import function to automagically load data from an dsa website into the database --- DSACore/DSA_Game/Dsa.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'DSACore/DSA_Game/Dsa.cs') diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs index 824872c..9602791 100644 --- a/DSACore/DSA_Game/Dsa.cs +++ b/DSACore/DSA_Game/Dsa.cs @@ -1,4 +1,5 @@ using System; +using DSACore.Auxiliary; using DSACore.FireBase; using DSALib; using DSALib.Characters; @@ -42,8 +43,6 @@ namespace DSACore.DSA_Game } } - public static void start(){} - public static void Startup() { //new .Auxiliary.Calculator.StringSolver("1d100 - (1d200 + 1) * -50000").Solve(); @@ -74,10 +73,12 @@ namespace DSACore.DSA_Game Database.AddSpell(new Models.Database.GeneralSpell(talent.Name, talent.Probe, talent.Complexity)); }*/ + //new WeaponImporter().DownloadWeapons().Wait(); + Session = new Session { - Chars = Chars.Select(x => SaveChar.FromICharacter(x)).ToList() + Chars = Chars.Select(SaveChar.FromICharacter).ToList() }; //Session.Save(); } -- cgit v1.2.3-70-g09d2