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

33 lines
704 B
C#
Raw Normal View History

2024-02-07 15:40:36 +00:00
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
2023-11-20 18:56:14 +00:00
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;
}