Some early glamourer changes.

This commit is contained in:
Ottermandias 2022-07-21 10:07:52 +02:00
parent c2bc8252f1
commit 9dee0862cc
17 changed files with 192 additions and 840 deletions

View file

@ -1,30 +1,29 @@
using System;
namespace Penumbra.GameData.Structs
namespace Penumbra.GameData.Structs;
public readonly struct StainId : IEquatable< StainId >
{
public readonly struct StainId : IEquatable< StainId >
{
public readonly byte Value;
public readonly byte Value;
public StainId( byte value )
=> Value = value;
public StainId( byte value )
=> Value = value;
public static implicit operator StainId( byte id )
=> new( id );
public static implicit operator StainId( byte id )
=> new(id);
public static explicit operator byte( StainId id )
=> id.Value;
public static explicit operator byte( StainId id )
=> id.Value;
public override string ToString()
=> Value.ToString();
public override string ToString()
=> Value.ToString();
public bool Equals( StainId other )
=> Value == other.Value;
public bool Equals( StainId other )
=> Value == other.Value;
public override bool Equals( object? obj )
=> obj is StainId other && Equals( other );
public override bool Equals( object? obj )
=> obj is StainId other && Equals( other );
public override int GetHashCode()
=> Value.GetHashCode();
}
public override int GetHashCode()
=> Value.GetHashCode();
}