mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Some Glamourer stuff
This commit is contained in:
parent
a293e7dfea
commit
7d1d6ac829
4 changed files with 42 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue