summaryrefslogtreecommitdiff
path: root/DSACore/Models/Database/Weapon.cs
blob: b2f8a1ede00a193c41698ecb201f8339befb6fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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)
        {
        }
    }
}