public JournalSupercruiseExit(JObject evt) : base(evt, JournalTypeEnum.SupercruiseExit) { StarSystem = evt["StarSystem"].Str(); Body = evt["Body"].Str(); BodyType = evt["BodyType"].Str(); if (BodyType.Equals("Null", System.StringComparison.InvariantCultureIgnoreCase)) // obv a frontier bug { BodyType = ""; } }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns>true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.</returns> public bool Equals(MessageBody other) { return(Bytes.SequenceEqual(other.Bytes) && BodyType.Equals(other.BodyType)); }