~ruther/NosSmooth.Local

ref: bbad5288a9a78ffcd23ecf2cc5650432180be327 NosSmooth.Local/src/Core/NosSmooth.LocalBinding/Options/UnitManagerBindingOptions.cs -rw-r--r-- 1.1 KiB
bbad5288 — Rutherther feat(binding): add hook config builder for configuring what hooks to enable 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
25
26
27
28
29
30
31
32
33
//
//  UnitManagerBindingOptions.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.LocalBinding.Objects;

namespace NosSmooth.LocalBinding.Options;

/// <summary>
/// Options for <see cref="UnitManagerBinding"/>.
/// </summary>
public class UnitManagerBindingOptions
{
    /// <summary>
    /// Gets or sets the pattern to static address of unit manager.
    /// </summary>
    public string UnitManagerPattern { get; set; }
        = "A1 ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 5A 59 59 64 89 10 68 ?? ?? ?? ?? 8D 45 F0 BA";

    /// <summary>
    /// Gets or sets the pointer offsets from the unit manager static address.
    /// </summary>
    public int[] UnitManagerOffsets { get; set; }
        = { 1, 0 };

    /// <summary>
    /// Gets or sets the configuration for entity focus function hook.
    /// </summary>
    public HookOptions EntityFocusHook { get; set; }
        = new HookOptions(false, "73 00 00 00 55 8b ec b9 05 00 00 00", 4);
}
Do not follow this link