~ruther/NosSmooth

ref: 81560d81a5d98a213d4e01870ccd3a720ccef88d NosSmooth/Core/NosSmooth.Core/Commands/Control/ITakeControlCommand.cs -rw-r--r-- 1.0 KiB
81560d81 — František Boháček feat!(core): make some classes internal 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
27
28
29
30
31
32
33
//
//  ITakeControlCommand.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.Core.Commands.Control;

/// <summary>
/// Represents command that supports taking control. See <see cref="TakeControlCommand"/>.
/// </summary>
public interface ITakeControlCommand : ICommand
{
    /// <summary>
    /// Gets whether the command may be cancelled by another task within the same group.
    /// </summary>
    bool CanBeCancelledByAnother { get; }

    /// <summary>
    /// Gets whether to wait for finish of the previous task.
    /// </summary>
    bool WaitForCancellation { get; }

    /// <summary>
    /// Gets whether to allow the user to cancel by taking any walk/focus/unfollow action.
    /// </summary>
    bool AllowUserCancel { get; }

    /// <summary>
    /// Gets whether the command should be cancelled on map change.
    /// </summary>
    bool CancelOnMapChange { get; }
}
Do not follow this link