public override int GetHashCode() { unchecked { var hashCode = EnergyCost; hashCode = (hashCode * 397) ^ InstanceId; hashCode = (hashCode * 397) ^ PlayerIndex; hashCode = (hashCode * 397) ^ (PowerId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ SupplyCost; hashCode = (hashCode * 397) ^ (TargetLocation != null ? TargetLocation.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ CardId.GetHashCode(); hashCode = (hashCode * 397) ^ InstanceId; hashCode = (hashCode * 397) ^ ManaCost; hashCode = (hashCode * 397) ^ PlayerIndex; hashCode = (hashCode * 397) ^ ProvidedByScenario.GetHashCode(); hashCode = (hashCode * 397) ^ SpawnAtBase.GetHashCode(); hashCode = (hashCode * 397) ^ (TargetLocation != null ? TargetLocation.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = (BranchInfo != null ? BranchInfo.GetHashCode() : 0); result = (result * 397) ^ (TargetLocation != null ? TargetLocation.GetHashCode() : 0); result = (result * 397) ^ (Type != null ? Type.GetHashCode() : 0); result = (result * 397) ^ IsBranch.GetHashCode(); result = (result * 397) ^ IsCheck.GetHashCode(); result = (result * 397) ^ IsContinue.GetHashCode(); result = (result * 397) ^ IsFailedCheck.GetHashCode(); result = (result * 397) ^ IsStartMethod.GetHashCode(); result = (result * 397) ^ IsSwitch.GetHashCode(); result = (result * 397) ^ IsTarget.GetHashCode(); return(result); } }