~ruther/NosSmooth

ref: 792efeba255aec3fede9ead710ec67dce00dea3b NosSmooth/Extensions/NosSmooth.Extensions.Combat/Techniques/ICombatTechnique.cs -rw-r--r-- 813 bytes
792efeba — Rutherther feat(combat): add combat manager 3 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
//
//  ICombatTechnique.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.Extensions.Combat.Operations;
using OneOf.Types;
using Remora.Results;

namespace NosSmooth.Extensions.Combat.Techniques;

/// <summary>
/// A combat technique that allows to handle the whole combat situations using step callbacks.
/// </summary>
/// <remarks>
/// The callback methods decide the next steps, used in <see cref="CombatManager"/>.
/// </remarks>
public interface ICombatTechnique
{
    public bool ShouldContinue(ICombatState state);

    public Result HandleCombatStep(ICombatState state);

    public Result HandleError(ICombatState state, ICombatOperation operation, Result result);
}
Do not follow this link