Some Glamourer stuff

This commit is contained in:
Ottermandias 2023-04-29 12:25:24 +02:00
parent a293e7dfea
commit 7d1d6ac829
4 changed files with 42 additions and 15 deletions

View file

@ -1,8 +1,9 @@
using System;
using System.Numerics;
namespace Penumbra.GameData.Structs;
public readonly struct StainId : IEquatable< StainId >
public readonly struct StainId : IEquatable< StainId >, IEqualityOperators<StainId, StainId, bool>
{
public readonly byte Value;
@ -26,4 +27,10 @@ public readonly struct StainId : IEquatable< StainId >
public override int GetHashCode()
=> Value.GetHashCode();
public static bool operator ==(StainId left, StainId right)
=> left.Value == right.Value;
public static bool operator !=(StainId left, StainId right)
=> left.Value != right.Value;
}