|
|
|
@ -19,7 +19,9 @@ public readonly struct Entity |
|
|
|
|
public bool Equals(Entity other) => Value.Data == other.Value.Data; |
|
|
|
|
public override bool Equals(object? obj) => (obj is Entity other) && Equals(other); |
|
|
|
|
public override int GetHashCode() => Value.Data.GetHashCode(); |
|
|
|
|
public override string? ToString() => $"Entity(0x{Value.Data.Data:X})"; |
|
|
|
|
public override string? ToString() |
|
|
|
|
=> IsSome ? $"Entity(0x{Value.Data.Data:X})" |
|
|
|
|
: "Entity.None"; |
|
|
|
|
|
|
|
|
|
public static bool operator ==(Entity left, Entity right) => left.Equals(right); |
|
|
|
|
public static bool operator !=(Entity left, Entity right) => !left.Equals(right); |
|
|
|
|