AStarTest.RenderData.SetGridSize C# (CSharp) Méthode

SetGridSize() public méthode

public SetGridSize ( IntSize2 size ) : void
size IntSize2
Résultat void
        public void SetGridSize(IntSize2 size)
        {
            if (size.Width == this.Width && size.Height == this.Height)
                return;

            this.Grid = new RenderTileData[size.Height, size.Width];

            this.Width = size.Width;
            this.Height = size.Height;
        }
RenderData