예제 #1
0
 public static bool CheckFlags(this NetInfo.Segment segmentInfo, NetSegment.Flags flags, bool turnAround)
 {
     if (!turnAround)
     {
         return(flags.CheckFlags(segmentInfo.m_forwardRequired, segmentInfo.m_forwardForbidden));
     }
     else
     {
         return(flags.CheckFlags(segmentInfo.m_backwardRequired, segmentInfo.m_backwardForbidden));
     }
 }
예제 #2
0
 public bool CheckFlags(NetSegment.Flags flags) => flags.CheckFlags(Required, Forbidden);