~ruther/NosSmooth

ref: 7f45f96e9a0ff9e0c0110b6184eb41aee91667af NosSmooth/Local/NosSmooth.LocalClient/LocalClientOptions.cs -rw-r--r-- 1.3 KiB
7f45f96e — František Boháček refactor: split string converters 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
34
35
36
37
38
39
40
41
42
43
44
//
//  LocalClientOptions.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.Core.Commands;

namespace NosSmooth.LocalClient;

/// <summary>
/// Options for <see cref="NostaleLocalClient"/>.
/// </summary>
public class LocalClientOptions
{
    /// <summary>
    /// Gets or sets whether the interception of packets should be allowed.
    /// </summary>
    public bool AllowIntercept { get; set; }

    /// <summary>
    /// Hook the packet sent method.
    /// </summary>
    /// <remarks>
    /// Packet handlers and interceptors won't be called for sent packets.
    /// </remarks>
    public bool HookPacketSend { get; set; } = true;

    /// <summary>
    /// Hook the packet received method.
    /// </summary>
    /// <remarks>
    /// Packet handlers and interceptors won't be called for received packets.
    /// </remarks>
    public bool HookPacketReceive { get; set; } = true;

    /// <summary>
    /// Whether to hook Character.Walk method. True by default.
    /// </summary>
    /// <remarks>
    /// If set to false, <see cref="WalkCommand.CancelOnUserMove"/> won't take any effect.
    /// </remarks>
    public bool HookCharacterWalk { get; set; } = true;
}
Do not follow this link