~ruther/NosSmooth

ref: da2bcf6244ee21aaddaf329e32ffb4f19242b7d5 NosSmooth/Extensions/NosSmooth.Extensions.Combat/Selectors/ISkillSelector.cs -rw-r--r-- 771 bytes
da2bcf62 — Rutherther chore: update 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
//
//  ISkillSelector.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 NosSmooth.Game.Data.Characters;
using Remora.Results;

namespace NosSmooth.Extensions.Combat.Selectors;

/// <summary>
/// Selects a skill to use from a possible skills.
/// </summary>
public interface ISkillSelector
{
    /// <summary>
    /// Gets the skill to use.
    /// </summary>
    /// <param name="usableSkills">The skills that may be used. Won't contain skills the user doesn't have mana for and that are on cooldown.</param>
    /// <returns>The skill to use, or an error.</returns>
    public Result<Skill> GetSelectedSkill(IEnumerable<Skill> usableSkills);
}
Do not follow this link