PkmnLib.NET/PkmnLib.Static/TypeIdentifier.cs

15 lines
337 B
C#
Raw Normal View History

2024-07-20 11:51:52 +00:00
namespace PkmnLib.Static;
public readonly record struct TypeIdentifier
{
private byte Value { get; init; }
public TypeIdentifier(byte value)
{
Value = value;
}
public static implicit operator TypeIdentifier(byte value) => new(value);
public override int GetHashCode() => Value.GetHashCode();
}