diff options
Diffstat (limited to 'DSACore/Models/Database')
-rw-r--r-- | DSACore/Models/Database/Group.cs | 3 | ||||
-rw-r--r-- | DSACore/Models/Database/Weapon.cs | 40 |
2 files changed, 42 insertions, 1 deletions
diff --git a/DSACore/Models/Database/Group.cs b/DSACore/Models/Database/Group.cs index 0273aed..a7bb929 100644 --- a/DSACore/Models/Database/Group.cs +++ b/DSACore/Models/Database/Group.cs @@ -12,5 +12,8 @@ namespace DSACore.Models.Database 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/Weapon.cs b/DSACore/Models/Database/Weapon.cs index 9c75b30..b2f8a1e 100644 --- a/DSACore/Models/Database/Weapon.cs +++ b/DSACore/Models/Database/Weapon.cs @@ -7,9 +7,47 @@ 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 Modifier { 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) + { + } } } |