public override int GetHashCode() { unchecked { var hashCode = CommandPointCost; hashCode = (hashCode * 397) ^ PlayerIndex; hashCode = (hashCode * 397) ^ (PowerId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ ProvidedByScenario.GetHashCode(); return(hashCode); } }
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); } }