mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 20:37:42 +01:00
Add ITargetManager (#1277)
Co-authored-by: goat <16760685+goaaats@users.noreply.github.com>
This commit is contained in:
parent
8f971934f3
commit
fe46fd33dc
2 changed files with 69 additions and 19 deletions
44
Dalamud/Plugin/Services/ITargetManager.cs
Normal file
44
Dalamud/Plugin/Services/ITargetManager.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Objects;
|
||||
|
||||
/// <summary>
|
||||
/// Get and set various kinds of targets for the player.
|
||||
/// </summary>
|
||||
public interface ITargetManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the address of the target manager.
|
||||
/// </summary>
|
||||
public nint Address { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current target.
|
||||
/// Set to null to clear the target.
|
||||
/// </summary>
|
||||
public GameObject? Target { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the mouseover target.
|
||||
/// Set to null to clear the target.
|
||||
/// </summary>
|
||||
public GameObject? MouseOverTarget { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the focus target.
|
||||
/// Set to null to clear the target.
|
||||
/// </summary>
|
||||
public GameObject? FocusTarget { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the previous target.
|
||||
/// Set to null to clear the target.
|
||||
/// </summary>
|
||||
public GameObject? PreviousTarget { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the soft target.
|
||||
/// Set to null to clear the target.
|
||||
/// </summary>
|
||||
public GameObject? SoftTarget { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue