Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Add support for filtering Relay
Browse files Browse the repository at this point in the history
  • Loading branch information
MOARdV committed Oct 9, 2017
1 parent 70fa562 commit 26c8882
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RasterPropMonitor/Handlers/JSITargetMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public class JSITargetMenu : InternalModule
{ VesselType.Base,false },
{ VesselType.Debris,false },
{ VesselType.Unknown,false },
{ VesselType.Relay,false }
};

private enum MenuList
Expand Down Expand Up @@ -783,6 +784,8 @@ private static int VesselFilterToBitmask(Dictionary<VesselType, bool> filterList
mask |= 1 << 8;
if (filterList[VesselType.Unknown])
mask |= 1 << 9;
if (filterList[VesselType.Relay])
mask |= 1 << 10;
return mask;
}

Expand All @@ -798,6 +801,7 @@ private void VesselFilterFromBitmask(int mask)
vesselFilter[VesselType.Base] = (mask & (1 << 7)) > 0;
vesselFilter[VesselType.Debris] = (mask & (1 << 8)) > 0;
vesselFilter[VesselType.Unknown] = (mask & (1 << 9)) > 0;
vesselFilter[VesselType.Relay] = (mask & (1 << 10)) > 0;
}

// Returns true if the reference part is a claw and the part can be
Expand Down

0 comments on commit 26c8882

Please sign in to comment.