示例#1
0
        private void skControl1_PaintSurface(object sender, SkiaSharp.Views.Desktop.SKPaintSurfaceEventArgs e)
        {
            if (Map != null)
            {
                var canvas = e.Surface.Canvas;
                _gameRenderer = new GameRenderer(canvas, _scale, 80, Form1.GetHexagonHeight(80), new SKSize(skControl1.Width, skControl1.Height));

                _gameRenderer.DrawMap(Map, new List <Common.Location>());


                foreach (Location loc in _currentLocations)
                {
                    _gameRenderer.DrawDebugIndicatorCircle(new Engine.Debug.DebugIndicatorCircle()
                    {
                        Color = DebugColor.Red, Location = loc, RobotController = null
                    });
                }



                //canvas.DrawCircle(, 10f, _gameRenderer.Paints.TerrainStroke);
            }
        }