示例#1
0
 public void Apply_Road_Remove()
 {
     clsMouseOver.clsOverTerrain mouseOverTerrain = this.GetMouseOverTerrain();
     if (mouseOverTerrain != null)
     {
         clsMap.clsApplyRoadRemove tool = new clsMap.clsApplyRoadRemove {
             Map = this.Map
         };
         modProgram.CliffBrush.PerformActionMapTiles(tool, mouseOverTerrain.Tile);
         this.Map.Update();
         this.MapView.DrawViewLater();
     }
 }
示例#2
0
        public void Apply_Road_Remove()
        {
            clsMouseOver.clsOverTerrain MouseOverTerrain = GetMouseOverTerrain();

            if ( MouseOverTerrain == null )
            {
                return;
            }

            clsMap.clsApplyRoadRemove ApplyRoadRemove = new clsMap.clsApplyRoadRemove();
            ApplyRoadRemove.Map = Map;
            App.CliffBrush.PerformActionMapTiles(ApplyRoadRemove, MouseOverTerrain.Tile);

            Map.Update();

            MapViewControl.DrawViewLater();
        }