Core.cs
/// <summary>
/// Determines if events of the given vessel should be tracked
/// </summary>
/// <param name="v"></param>
/// <param name="mustBeActive"></param>
/// <returns></returns>
Determines if events of the given vessel should be tracked
Determines if events of the given vessel should be tracked
public static bool IsTrackable(this Vessel v, bool mustBeActive) =>
            v != null
            && v.vesselType != VesselType.Debris
            && v.vesselType != VesselType.EVA
            && v.vesselType != VesselType.Flag
            && v.vesselType != VesselType.SpaceObject
            && v.vesselType != VesselType.Unknown
            && (!mustBeActive || v == FlightGlobals.ActiveVessel);
public static bool IsTrackable ( this Vessel v , bool mustBeActive ) => v != null && v . vesselType != VesselType . Debris && v . vesselType != VesselType . EVA && v . vesselType != VesselType . Flag && v . vesselType != VesselType . SpaceObject && v . vesselType != VesselType . Unknown && ( ! mustBeActive || v == FlightGlobals . ActiveVessel ) ;
Determines if events of the given vessel should be tracked
Determines if events of the given vessel should be tracked
None
Vessel
this
mustBeActive
bool
None
v
None