/// <summary> /// Hash the engine. /// </summary> public override int GetHashCode() { int hash = part.GetHashCode(); if (engine != null) { hash ^= engine.GetHashCode(); } if (engineFx != null) { hash ^= engineFx.GetHashCode(); } if (gimbal != null) { hash ^= gimbal.GetHashCode(); } return(hash); }