Initial commit
This commit is contained in:
15
PkmnLib.Static/TypeIdentifier.cs
Normal file
15
PkmnLib.Static/TypeIdentifier.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user