SimShift.MapTool.Ets2Mapper.NavigateTo C# (CSharp) 메소드

NavigateTo() 공개 메소드

Navigate from X/Y to X/Y coordinates
public NavigateTo ( PointF from, PointF to ) : Ets2NavigationRoute
from System.Drawing.PointF
to System.Drawing.PointF
리턴 Ets2NavigationRoute
        public Ets2NavigationRoute NavigateTo(PointF from, PointF to)
        {
            var start = FindClosestRoadPrefab(from);
            var end = FindClosestRoadPrefab(to);

            Console.WriteLine("Navigating from " + start.ItemUID.ToString("X16") + " to " + end.ItemUID.ToString("X16"));
            // Look up pre-fab closest by these 2 points
            return new Ets2NavigationRoute(start,end, new Ets2Point(from), new Ets2Point(to), this);
        }

Same methods

Ets2Mapper::NavigateTo ( PointF from, string city ) : Ets2NavigationRoute
Ets2Mapper::NavigateTo ( PointF from, string city, string company ) : Ets2NavigationRoute