/// <inheritdoc /> public override int GetHashCode() { unchecked { var hashCode = (int)Flags; hashCode = (hashCode * 397) ^ (Pips != null ? Pips.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FireGroup.GetHashCode(); hashCode = (hashCode * 397) ^ (int)GuiFocus; hashCode = (hashCode * 397) ^ (Fuel != null ? Fuel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)LegalState; hashCode = (hashCode * 397) ^ Cargo.GetHashCode(); hashCode = (hashCode * 397) ^ Latitude.GetHashCode(); hashCode = (hashCode * 397) ^ Altitude.GetHashCode(); hashCode = (hashCode * 397) ^ Longitude.GetHashCode(); hashCode = (hashCode * 397) ^ Heading.GetHashCode(); hashCode = (hashCode * 397) ^ (BodyName != null ? BodyName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PlanetRadius.GetHashCode(); return(hashCode); } }