~ruther/NosSmooth

ref: 8b69e5448f0d365eb4830396b2767b3b3400665f NosSmooth/Core/NosSmooth.Game/Data/Characters/Skills.cs -rw-r--r-- 969 bytes
8b69e544 — František Boháček chore: bump versions 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
//
//  Skills.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.

namespace NosSmooth.Game.Data.Characters;

/// <summary>
/// Holds skill of a Character.
/// </summary>
/// <param name="PrimarySkill">The VNum of the primary skill. This skill is used with the primary weapon. (Could be different for sp cards.)</param>
/// <param name="SecondarySkill">The VNum of the secondary skill. This skill is used with the secondary weapon. (Could be different for sp cards)</param>
/// <param name="OtherSkills">The VNums of other skills.</param>
public record Skills
(
    Skill PrimarySkill,
    Skill SecondarySkill,
    IReadOnlyList<Skill> OtherSkills
)
{
    /// <summary>
    /// Gets all skills contained in this collection.
    /// </summary>
    public IEnumerable<Skill> AllSkills => new[] { PrimarySkill, SecondarySkill }.Concat(OtherSkills);
}
Do not follow this link