Ejemplo n.º 1
0
 public static bool PathCrossRestrictedSpace(OverworldShip ship, Vector2 a, Vector2 b)
 {
     foreach (SpaceRegion region in ship.restrictedSpace)
     {
         if (CollisionDetection.IsLineInRect(region.SpaceRegionArea, a, b))
         {
             return(true);
         }
     }
     return(false);
 }