public static PathEndMode ResolveClosestTouchPathMode(Pawn pawn, Map map, IntVec3 target)
 {
     if (GenPath.ShouldNotEnterCell(pawn, map, target))
     {
         return(PathEndMode.Touch);
     }
     return(PathEndMode.OnCell);
 }
Exemple #2
0
        public static PathEndMode ResolveClosestTouchPathMode(Pawn pawn, Map map, IntVec3 target)
        {
            PathEndMode result;

            if (GenPath.ShouldNotEnterCell(pawn, map, target))
            {
                result = PathEndMode.Touch;
            }
            else
            {
                result = PathEndMode.OnCell;
            }
            return(result);
        }