Turn ObjectVTableHook internal

This commit is contained in:
Soreepeong 2023-07-30 13:50:01 +09:00
parent 8ec8979300
commit e223057345
3 changed files with 5 additions and 4 deletions

View file

@ -1,12 +1,12 @@
using System;
using System.Runtime.InteropServices;
namespace Dalamud.Hooking;
namespace Dalamud.Hooking.Internal;
/// <summary>
/// Manages a hook that works by replacing the vtable of target object.
/// </summary>
public unsafe class ObjectVTableHook : IDisposable
internal unsafe class ObjectVTableHook : IDisposable
{
private readonly nint** ppVtbl;
private readonly int numMethods;

View file

@ -1,13 +1,13 @@
using System;
using System.Runtime.InteropServices;
namespace Dalamud.Hooking;
namespace Dalamud.Hooking.Internal;
/// <summary>
/// Typed version of <see cref="ObjectVTableHook"/>.
/// </summary>
/// <typeparam name="TVTableEnum">Type of VTable enum.</typeparam>
public unsafe class ObjectVTableHook<TVTableEnum> : ObjectVTableHook
internal unsafe class ObjectVTableHook<TVTableEnum> : ObjectVTableHook
where TVTableEnum : unmanaged, Enum
{
/// <summary>

View file

@ -15,6 +15,7 @@ using Dalamud.Game.ClientState.GamePad;
using Dalamud.Game.ClientState.Keys;
using Dalamud.Game.Gui.Internal;
using Dalamud.Hooking;
using Dalamud.Hooking.Internal;
using Dalamud.Interface.GameFonts;
using Dalamud.Interface.Internal.ManagedAsserts;
using Dalamud.Interface.Internal.Notifications;