Ejemplo n.º 1
0
        private Grid2 <SpriteCell> CreateGrid()
        {
            var gridDimensions = new InspectableGridPoint2
            {
                x = radius,
                y = radius
            };

            var dimensions = gridDimensions.GetGridPoint();
            var shape      = ImplicitShape.Hexagon(radius);
            var storage    = shape.ToExplicit(new GridRect(GridPoint2.Zero, dimensions));
            var grid       = new Grid2 <SpriteCell>(storage);

            return(grid);
        }