示例#1
0
    protected virtual void OnSaveMapPressed()
    {
        if (!mapView.IsMapCompleted())
        {
            uiView.ShowMessage("Start and Goal points should be set.");
            return;
        }

        Point startPoint = ConvertToPoint(mapView.GetStartPoint());
        Point goalPoint  = ConvertToPoint(mapView.GetGoalPoint());

        mapSaver.SaveMap(mapView.GetGrid(), startPoint, goalPoint);
    }