mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 04:34:19 +01:00
Some Glamourer stuff.
This commit is contained in:
parent
21e6a17d1c
commit
2ef9d3d56e
7 changed files with 55 additions and 48 deletions
|
|
@ -2,7 +2,7 @@ using System;
|
|||
|
||||
namespace Penumbra.GameData.Structs;
|
||||
|
||||
public readonly struct SetId : IComparable< SetId >
|
||||
public readonly struct SetId : IComparable< SetId >, IEquatable<SetId>, IEquatable<ushort>
|
||||
{
|
||||
public readonly ushort Value;
|
||||
|
||||
|
|
@ -15,6 +15,12 @@ public readonly struct SetId : IComparable< SetId >
|
|||
public static explicit operator ushort( SetId id )
|
||||
=> id.Value;
|
||||
|
||||
public bool Equals(SetId other)
|
||||
=> Value == other.Value;
|
||||
|
||||
public bool Equals(ushort other)
|
||||
=> Value == other;
|
||||
|
||||
public override string ToString()
|
||||
=> Value.ToString();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue