using PkmnLib.Static.Libraries;
namespace PkmnLib.Static;
///
/// A number that identifies a type. To be used with
///
public readonly record struct TypeIdentifier
{
///
/// The underlying value of the type identifier.
///
public byte Value { get; }
///
public TypeIdentifier(byte value)
{
Value = value;
}
///
/// Converts a byte to a type identifier.
///
public static implicit operator TypeIdentifier(byte value) => new(value);
///
public override int GetHashCode() => Value.GetHashCode();
}