~ruther/NosSmooth

ref: 28c6ffce3a174cf12d5b32511319bd5f7d5ab9e1 NosSmooth/Data/NosSmooth.Data.Database/Data/SkillInfo.cs -rw-r--r-- 2.1 KiB
28c6ffce — Rutherther fix(packets): put correct attribute to pst packet effects 2 years ago
                                                                                
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//
//  SkillInfo.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NosSmooth.Data.Abstractions.Enums;
using NosSmooth.Data.Abstractions.Infos;
using NosSmooth.Data.Abstractions.Language;

namespace NosSmooth.Data.Database.Data;

/// <inheritdoc />
public class SkillInfo : ISkillInfo
{
    private string _nameKey = null!;

    /// <inheritdoc />
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    [Key]
    public int VNum { get; set; }

    /// <summary>
    /// The name translation key.
    /// </summary>
    public string NameKey
    {
        get => _nameKey;
        set
        {
            _nameKey = value;
            Name = new TranslatableString(TranslationRoot.Skill, value);
        }
    }

    /// <inheritdoc />
    public TranslatableString Name { get; set; }

    /// <inheritdoc />
    public short Range { get; set; }

    /// <inheritdoc />
    public short ZoneRange { get; set; }

    /// <inheritdoc />
    public int CastTime { get; set; }

    /// <inheritdoc />
    public int Cooldown { get; set; }

    /// <inheritdoc />
    public SkillType SkillType { get; set; }

    /// <inheritdoc />
    public AttackType AttackType { get; set; }

    /// <inheritdoc />
    public Element Element { get; set; }

    /// <inheritdoc />
    public int SpecialCost { get; set; }

    /// <inheritdoc />
    public short Upgrade { get; set; }

    /// <inheritdoc />
    public short MorphOrUpgrade { get; set; }

    /// <inheritdoc />
    public short DashSpeed { get; set; }

    /// <inheritdoc />
    public int ItemVNum { get; set; }

    /// <inheritdoc />
    public bool UsesSecondaryWeapon { get; set; }

    /// <inheritdoc />
    public int MpCost { get; set; }

    /// <inheritdoc />
    public short CastId { get; set; }

    /// <inheritdoc />
    public TargetType TargetType { get; set; }

    /// <inheritdoc />
    public HitType HitType { get; set; }
}
Do not follow this link