summaryrefslogtreecommitdiff
path: root/DSACore/Models/Database
diff options
context:
space:
mode:
Diffstat (limited to 'DSACore/Models/Database')
-rw-r--r--DSACore/Models/Database/Advantage.cs19
-rw-r--r--DSACore/Models/Database/CharSpell.cs19
-rw-r--r--DSACore/Models/Database/DatabaseChar.cs63
-rw-r--r--DSACore/Models/Database/Field.cs19
-rw-r--r--DSACore/Models/Database/GeneralSpell.cs25
-rw-r--r--DSACore/Models/Database/Group.cs19
-rw-r--r--DSACore/Models/Database/GroupChar.cs18
-rw-r--r--DSACore/Models/Database/Inventory.cs15
-rw-r--r--DSACore/Models/Database/Talent.cs29
-rw-r--r--DSACore/Models/Database/Weapon.cs53
-rw-r--r--DSACore/Models/Database/WeaponTalent.cs18
11 files changed, 0 insertions, 297 deletions
diff --git a/DSACore/Models/Database/Advantage.cs b/DSACore/Models/Database/Advantage.cs
deleted file mode 100644
index 67965fc..0000000
--- a/DSACore/Models/Database/Advantage.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class Advantage
- {
- public Advantage(string name, string value = "")
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- Value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- public string Name { get; set; }
- public string Value { get; set; }
- }
-}
diff --git a/DSACore/Models/Database/CharSpell.cs b/DSACore/Models/Database/CharSpell.cs
deleted file mode 100644
index 670488c..0000000
--- a/DSACore/Models/Database/CharSpell.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class CharSpell
- {
- public CharSpell(string representation, int value)
- {
- this.representation = representation ?? throw new ArgumentNullException(nameof(representation));
- this.value = value;
- }
-
- public string representation { get; set; }
- public int value { get; set; }
- }
-}
diff --git a/DSACore/Models/Database/DatabaseChar.cs b/DSACore/Models/Database/DatabaseChar.cs
deleted file mode 100644
index 9cd865f..0000000
--- a/DSACore/Models/Database/DatabaseChar.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using DSALib;
-
-namespace DSACore.Models.Database
-{
- public class DatabaseChar
- {
- public DatabaseChar()
- {
- }
-
- public DatabaseChar(int id, string name, string rasse, List<Field> skills, List<Field> talents, List<Advantage> advantages, List<CharSpell> spells, List<WeaponTalent> weaponTalents)
- {
- Id = id;
- Name = name ?? throw new ArgumentNullException(nameof(name));
- Rasse = rasse ?? throw new ArgumentNullException(nameof(rasse));
- Skills = skills ?? throw new ArgumentNullException(nameof(skills));
- Talents = talents ?? throw new ArgumentNullException(nameof(talents));
- Advantages = advantages ?? throw new ArgumentNullException(nameof(advantages));
- Spells = spells ?? throw new ArgumentNullException(nameof(spells));
- WeaponTalents = weaponTalents ?? throw new ArgumentNullException(nameof(weaponTalents));
- }
-
- public int Id { get; set; }
-
- public string Name { get; set; }
-
- public string Rasse { get; set; }
-
- public List<Field> Skills { get; set; } = new List<Field>();
-
- public List<Field> Talents { get; set; } = new List<Field>();
-
- public List<Advantage> Advantages { get; set; } = new List<Advantage>();
-
- public List<CharSpell> Spells { get; set; } = new List<CharSpell>();
-
- public List<WeaponTalent> WeaponTalents { get; set; } = new List<WeaponTalent>();
-
-
- public static void LoadChar(DSA_Game.Characters.Character file, out GroupChar group, out DatabaseChar data)
- {
- group = new GroupChar();
- data = new DatabaseChar();
-
- group.Name = file.Name.Split(' ').First();
- group.Weapon = new Weapon();
- group.Lp = group.LpMax = file.Lebenspunkte_Basis;
- group.As = group.AsMax = file.Astralpunkte_Basis;
- group.Weapon = new Weapon();
-
- data.Name = file.Name;
- data.Advantages = file.Vorteile.Select(x => new Advantage(x.Name, x.Value)).ToList();
- data.Skills = file.Eigenschaften.Select(x => new Field(x.Key, x.Value)).ToList();
- data.Spells = file.Zauber.Select(x => new CharSpell(x.Representation, x.Value)).ToList();
- data.Talents = file.Talente.Select(x => new Field(x.Name, x.Value)).ToList();
- data.WeaponTalents = file.Kampftalente.Select(x => new WeaponTalent(x.Name, x.At, x.Pa)).ToList();
- }
- }
-}
diff --git a/DSACore/Models/Database/Field.cs b/DSACore/Models/Database/Field.cs
deleted file mode 100644
index b14d9da..0000000
--- a/DSACore/Models/Database/Field.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class Field
- {
- public Field(string name, int value = 0)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- this.Value = value;
- }
-
- public string Name { get; set; }
- public int Value { get; set; }
- }
-}
diff --git a/DSACore/Models/Database/GeneralSpell.cs b/DSACore/Models/Database/GeneralSpell.cs
deleted file mode 100644
index f53081e..0000000
--- a/DSACore/Models/Database/GeneralSpell.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class GeneralSpell : Talent
- {
- public char Comlexity = 'A';
-
- public GeneralSpell(string name, string roll, char comlexity = 'A') :base(name, roll)
- {
- Comlexity = comlexity;
- }
-
- public GeneralSpell(string name, string roll) : base(name, roll)
- {
- }
-
- public GeneralSpell()
- {
- }
- }
-}
diff --git a/DSACore/Models/Database/Group.cs b/DSACore/Models/Database/Group.cs
deleted file mode 100644
index a7bb929..0000000
--- a/DSACore/Models/Database/Group.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class Group
- {
- public string Name { get; set; }
- public string Discord { get; set; }
- public string Password { get; set; }
- public int Id { get; set; }
- public List<GroupChar> Chars { get; set; }= new List<GroupChar>();
-
- }
-
-
-}
diff --git a/DSACore/Models/Database/GroupChar.cs b/DSACore/Models/Database/GroupChar.cs
deleted file mode 100644
index 1dfc4ea..0000000
--- a/DSACore/Models/Database/GroupChar.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class GroupChar
- {
- public string Name { get; set; }
- public int Id { get; set; }
- public int Lp { get; set; }
- public int LpMax { get; set; }
- public int As { get; set; }
- public int AsMax { get; set; }
- public Weapon Weapon { get; set; }
- }
-}
diff --git a/DSACore/Models/Database/Inventory.cs b/DSACore/Models/Database/Inventory.cs
deleted file mode 100644
index e6b47ec..0000000
--- a/DSACore/Models/Database/Inventory.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class Inventory
- {
- public int Id { get; set; }
- public Dictionary<string, bool> Items { get; set; } = new Dictionary<string, bool>();
- public Dictionary<string, bool> Food { get; set; } = new Dictionary<string, bool>();
- public List<Weapon> Weapons { get; set; } = new List<Weapon>();
- }
-}
diff --git a/DSACore/Models/Database/Talent.cs b/DSACore/Models/Database/Talent.cs
deleted file mode 100644
index aca65a4..0000000
--- a/DSACore/Models/Database/Talent.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class Talent
- {
- public Talent()
- {
- }
-
- public Talent(string name)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- }
-
- public Talent(string name, String roll)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- Roll = roll.Split('/');
- }
-
- public string Name { get; set; }
-
- public string[] Roll { get; set; } = new string[3];
- }
-}
diff --git a/DSACore/Models/Database/Weapon.cs b/DSACore/Models/Database/Weapon.cs
deleted file mode 100644
index b2f8a1e..0000000
--- a/DSACore/Models/Database/Weapon.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-
-namespace DSACore.Models.Database
-{
- public class Weapon
- {
- public Weapon()
- {
- }
-
- public Weapon(string name, string damage, int weight, string weaponTalent, string price)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- Damage = damage ?? throw new ArgumentNullException(nameof(damage));
- Weight = weight;
- WeaponTalent = weaponTalent ?? throw new ArgumentNullException(nameof(weaponTalent));
- Price = price;
- }
-
- public string Name { get; set; }
- public string Damage { get; set; }
- public int Weight { get; set; }
- public string WeaponTalent { get; set; }
- public string Price { get; set; }
- }
-
- public class MeleeWeapon : Weapon
- {
- public string TpKK { get; set; }
- public int INI { get; set; }
- public string MW { get; set; }
-
- public MeleeWeapon(string name, string damage, int weight, string weaponTalent, string price) : base(name, damage, weight, weaponTalent, price)
- {
- }
- }
-
- public class RangedWeapon : Weapon
- {
- public int AtMod { get; set; }
- public int KKMod { get; set; }
- public string AtReach { get; set; }
- public string TpReach { get; set; }
- public int LoadTime { get; set; }
-
- public RangedWeapon(string name, string damage, int weight, string weaponTalent, string price) : base(name, damage, weight, weaponTalent, price)
- {
- }
- }
-}
diff --git a/DSACore/Models/Database/WeaponTalent.cs b/DSACore/Models/Database/WeaponTalent.cs
deleted file mode 100644
index 4b98d24..0000000
--- a/DSACore/Models/Database/WeaponTalent.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-
-namespace DSACore.Models.Database
-{
- public class WeaponTalent
- {
- public WeaponTalent(string name, int at, int pa)
- {
- Name = name ?? throw new ArgumentNullException(nameof(name));
- At = at;
- Pa = pa;
- }
-
- public string Name { get; set; }
- public int At { get; set; }
- public int Pa { get; set; }
- }
-} \ No newline at end of file