public bool HasChangedSince(LocationState state)
        {
            if (state == null)
            {
                return(false);
            }

            if (!SimpleComparer.Equals(StarSystem, state.StarSystem))
            {
                return(true);
            }
            if (!SimpleComparer.Equals(Body, state.Body))
            {
                return(true);
            }
            if (!SimpleComparer.Equals(SurfaceLocation, state.SurfaceLocation))
            {
                return(true);
            }
            if (!SimpleComparer.Equals(Station, state.Station))
            {
                return(true);
            }
            if (!SimpleComparer.Equals(SignalSource, state.SignalSource))
            {
                return(true);
            }

            return(false);
        }
示例#2
0
        public bool Equals(SignalSource other)
        {
            if (other == null)
            {
                return(false);
            }

            if (!SimpleComparer.Equals(Type, other.Type))
            {
                return(false);
            }
            if (Threat != other.Threat)
            {
                return(false);
            }

            return(true);
        }