Split CharEquipment.

This commit is contained in:
Ottermandias 2021-07-25 01:09:33 +02:00
parent a4ae44f310
commit 3c560268fc
6 changed files with 136 additions and 49 deletions

23
Penumbra/Game/SetId.cs Normal file
View file

@ -0,0 +1,23 @@
using System;
namespace Penumbra.Game
{
public readonly struct SetId : IComparable<SetId>
{
public readonly ushort Value;
public SetId( ushort value )
=> Value = value;
public static implicit operator SetId( ushort id ) => new(id);
public static explicit operator ushort( SetId id )
=> id.Value;
public override string ToString()
=> Value.ToString();
public int CompareTo( SetId other )
=> Value.CompareTo( other.Value );
}
}