optimizations
This commit is contained in:
parent
419e2eb4a4
commit
d124f2c288
44 changed files with 1663 additions and 639 deletions
|
|
@ -3,17 +3,17 @@ using System.Runtime.InteropServices;
|
|||
namespace Roboto.GameOffsets.Components;
|
||||
|
||||
/// <summary>Targetable component — whether entity can be targeted/highlighted.</summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 0x58)]
|
||||
[StructLayout(LayoutKind.Explicit, Pack = 1, Size = 0x58)]
|
||||
public struct Targetable
|
||||
{
|
||||
[FieldOffset(0x00)] public ComponentHeader Header;
|
||||
|
||||
/// <summary>Whether the entity is targetable (byte bool).</summary>
|
||||
[FieldOffset(0x51)] public byte IsTargetable;
|
||||
[FieldOffset(0x49)] public byte IsTargetable;
|
||||
|
||||
/// <summary>Whether the entity is highlightable (byte bool).</summary>
|
||||
[FieldOffset(0x52)] public byte IsHighlightable;
|
||||
[FieldOffset(0x4A)] public byte IsHighlightable;
|
||||
|
||||
/// <summary>Whether the entity is targetable through walls (byte bool).</summary>
|
||||
[FieldOffset(0x53)] public byte IsTargetableThroughWalls;
|
||||
/// <summary>Whether the entity is targeted by player (byte bool).</summary>
|
||||
[FieldOffset(0x4B)] public byte IsTargettedByPlayer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue