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

33 lines
704 B
C#
Raw Normal View History

2024-02-07 16:40:36 +01:00
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
2023-11-20 19:56:14 +01:00
using System.Runtime.InteropServices;
2023-11-13 21:12:12 +01:00
namespace Wonderking.Game.Data.Item;
[StructLayout(LayoutKind.Explicit, Size = 24)]
public struct Stats {
2023-11-19 17:07:28 +01:00
[FieldOffset(0)]
[MarshalAs(UnmanagedType.I4)]
public int Strength;
2023-11-19 17:07:28 +01:00
[FieldOffset(4)]
[MarshalAs(UnmanagedType.I4)]
public int Dexterity;
2023-11-19 17:07:28 +01:00
[FieldOffset(8)]
[MarshalAs(UnmanagedType.I4)]
public int Intelligence;
2023-11-19 17:07:28 +01:00
[FieldOffset(12)]
[MarshalAs(UnmanagedType.I4)]
public int Vitality;
2023-11-19 17:07:28 +01:00
[FieldOffset(16)]
[MarshalAs(UnmanagedType.I4)]
public int Luck;
2023-11-19 17:07:28 +01:00
[FieldOffset(20)]
[MarshalAs(UnmanagedType.I4)]
public int Wisdom;
}