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; }