summaryrefslogtreecommitdiff
path: root/DSACore/Models/Database/DSA/Weapon.cs
blob: 58a44cdce63e294ae35a5c3c06cc82edca5cabd3 (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
using System;

namespace DSACore.Models.Database.DSA
{
    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 MeleeWeapon(string name, string damage, int weight, string weaponTalent, string price) : base(name,
            damage, weight, weaponTalent, price)
        {
        }

        public string TpKK { get; set; }
        public int INI { get; set; }
        public string MW { get; set; }
    }

    public class RangedWeapon : Weapon
    {
        public RangedWeapon(string name, string damage, int weight, string weaponTalent, string price) : base(name,
            damage, weight, weaponTalent, price)
        {
        }

        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; }
    }
}