mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-21 15:27:51 +01:00
Split CharEquipment.
This commit is contained in:
parent
a4ae44f310
commit
3c560268fc
6 changed files with 136 additions and 49 deletions
23
Penumbra/Game/SetId.cs
Normal file
23
Penumbra/Game/SetId.cs
Normal 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 );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue