~ruther/NosSmooth

ref: e4ec704ce8845f69eb6cda658b1e8bac72ec4de2 NosSmooth/Extensions/NosSmooth.Extensions.Combat/Selectors/IEnemySelector.cs -rw-r--r-- 826 bytes
e4ec704c — Rutherther fix(combat): wait for a while after using a skill 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
//
//  IEnemySelector.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.Entities;
using Remora.Results;

namespace NosSmooth.Extensions.Combat.Selectors;

/// <summary>
/// Selects an enemy from the possible enemies.
/// </summary>
public interface IEnemySelector
{
    /// <summary>
    /// Gets the entity to be currently selected.
    /// </summary>
    /// <param name="combatState">The combat state.</param>
    /// <param name="possibleTargets">The collection of possible targets.</param>
    /// <returns>The selected entity, or an error.</returns>
    public Result<ILivingEntity> GetSelectedEntity(ICombatState combatState, ICollection<ILivingEntity> possibleTargets);
}
Do not follow this link