poe2-bot/src/Roboto.GameOffsets/Components/Targetable.cs
2026-03-02 16:23:23 -05:00

19 lines
710 B
C#

using System.Runtime.InteropServices;
namespace Roboto.GameOffsets.Components;
/// <summary>Targetable component — whether entity can be targeted/highlighted.</summary>
[StructLayout(LayoutKind.Explicit, Size = 0x58)]
public struct Targetable
{
[FieldOffset(0x00)] public ComponentHeader Header;
/// <summary>Whether the entity is targetable (byte bool).</summary>
[FieldOffset(0x51)] public byte IsTargetable;
/// <summary>Whether the entity is highlightable (byte bool).</summary>
[FieldOffset(0x52)] public byte IsHighlightable;
/// <summary>Whether the entity is targetable through walls (byte bool).</summary>
[FieldOffset(0x53)] public byte IsTargetableThroughWalls;
}