continuity/Wonderking/Game/Data/Item/Stats.cs

32 lines
635 B
C#
Raw Normal View History

using System.Runtime.InteropServices;
2023-11-13 20:12:12 +00:00
namespace Wonderking.Game.Data.Item;
[StructLayout(LayoutKind.Explicit, Size = 24)]
public struct Stats
{
2023-11-19 16:07:28 +00:00
[FieldOffset(0)]
[MarshalAs(UnmanagedType.I4)]
public int Strength;
2023-11-19 16:07:28 +00:00
[FieldOffset(4)]
[MarshalAs(UnmanagedType.I4)]
public int Dexterity;
2023-11-19 16:07:28 +00:00
[FieldOffset(8)]
[MarshalAs(UnmanagedType.I4)]
public int Intelligence;
2023-11-19 16:07:28 +00:00
[FieldOffset(12)]
[MarshalAs(UnmanagedType.I4)]
public int Vitality;
2023-11-19 16:07:28 +00:00
[FieldOffset(16)]
[MarshalAs(UnmanagedType.I4)]
public int Luck;
2023-11-19 16:07:28 +00:00
[FieldOffset(20)]
[MarshalAs(UnmanagedType.I4)]
public int Wisdom;
}