This commit is contained in:
33 files changed
+511
-26
No files matched your search
@@ -30,4 +30,26 @@ public class PassChoice : TurnChoice, IPassChoice
|
||||
{
|
||||
User.CollectScripts(scripts);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString() =>
|
||||
$"PassChoice: {User}";
|
||||
|
||||
protected bool Equals(PassChoice other) => other.User == User;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is null)
|
||||
return false;
|
||||
if (ReferenceEquals(this, obj))
|
||||
return true;
|
||||
if (obj is not PassChoice other)
|
||||
return false;
|
||||
return Equals(other);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int GetHashCode() =>
|
||||
User?.GetHashCode() ?? 0;
|
||||
}
|
||||
Reference in new issue
Block a user