Some Glamourer stuff.

This commit is contained in:
Ottermandias 2023-01-29 21:08:43 +01:00
parent 21e6a17d1c
commit 2ef9d3d56e
7 changed files with 55 additions and 48 deletions

View file

@ -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();