Core/Refactor: Part 1

This commit is contained in:
hondacrx
2018-05-07 18:56:09 -04:00
parent b2c1554065
commit 216db1c23a
83 changed files with 298 additions and 296 deletions
+6 -2
View File
@@ -249,11 +249,15 @@ namespace Game
public override bool Equals(object obj)
{
return base.Equals(obj);
if (obj is PhaseRef)
return (PhaseRef)obj == this;
return false;
}
public override int GetHashCode()
{
return base.GetHashCode();
return Id.GetHashCode() ^ Flags.GetHashCode() ^ References.GetHashCode() ^ AreaConditions.GetHashCode();
}
}