MegaMan.LevelEditor.BrushTool.RightClick C# (CSharp) Метод

RightClick() публичный Метод

public RightClick ( ScreenDrawingSurface surface, Point location ) : void
surface ScreenDrawingSurface
location Point
Результат void
        public void RightClick(ScreenDrawingSurface surface, Point location)
        {
            int tile_x = location.X / surface.Screen.Tileset.TileSize;
            int tile_y = location.Y / surface.Screen.Tileset.TileSize;

            var tile = surface.Screen.TileAt(tile_x, tile_y);
            MainForm.Instance.TileStrip.SelectTile(tile);
        }