mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 15:27:43 +01:00
Use AgentInterfacePtr
This commit is contained in:
parent
d0caf98eb3
commit
f635673ce9
1 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
namespace Dalamud.Game.Agent.AgentArgTypes;
|
using Dalamud.Game.NativeWrapper;
|
||||||
|
|
||||||
|
namespace Dalamud.Game.Agent.AgentArgTypes;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base class for AgentLifecycle AgentArgTypes.
|
/// Base class for AgentLifecycle AgentArgTypes.
|
||||||
|
|
@ -15,7 +17,7 @@ public unsafe class AgentArgs
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the pointer to the Agents AgentInterface*.
|
/// Gets the pointer to the Agents AgentInterface*.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public nint Agent { get; internal set; }
|
public AgentInterfacePtr Agent { get; internal set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the agent id.
|
/// Gets the agent id.
|
||||||
|
|
@ -33,5 +35,5 @@ public unsafe class AgentArgs
|
||||||
/// <typeparam name="T">AgentInterface.</typeparam>
|
/// <typeparam name="T">AgentInterface.</typeparam>
|
||||||
/// <returns>Typed pointer to contained Agents AgentInterface.</returns>
|
/// <returns>Typed pointer to contained Agents AgentInterface.</returns>
|
||||||
public T* GetAgentPointer<T>() where T : unmanaged
|
public T* GetAgentPointer<T>() where T : unmanaged
|
||||||
=> (T*)this.Agent;
|
=> (T*)this.Agent.Address;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue