refactoring
This commit is contained in:
parent
fbd0ba445a
commit
18d8721dd5
68 changed files with 2187 additions and 36 deletions
32
src/Roboto.GameOffsets/Components/Stats.cs
Normal file
32
src/Roboto.GameOffsets/Components/Stats.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System.Runtime.InteropServices;
|
||||
using Roboto.GameOffsets.Natives;
|
||||
|
||||
namespace Roboto.GameOffsets.Components;
|
||||
|
||||
/// <summary>Stats component — item stats, weapon index, shapeshift.</summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 0x180)]
|
||||
public struct Stats
|
||||
{
|
||||
[FieldOffset(0x00)] public ComponentHeader Header;
|
||||
|
||||
/// <summary>Stats changed by items StdVector.</summary>
|
||||
[FieldOffset(0x160)] public StdVector StatsChangedByItems;
|
||||
|
||||
/// <summary>Current weapon index.</summary>
|
||||
[FieldOffset(0x178)] public int WeaponIndex;
|
||||
}
|
||||
|
||||
/// <summary>Internal stats storage.</summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 0x20)]
|
||||
public struct StatsInternal
|
||||
{
|
||||
[FieldOffset(0x00)] public StdVector StatArray;
|
||||
}
|
||||
|
||||
/// <summary>A single stat entry (key/value pair).</summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct StatArrayStruct
|
||||
{
|
||||
public int StatId;
|
||||
public int Value;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue