Пример #1
0
        public void GetStringGrid(World world)
        {
            int numRows = grid.GetLength(0) + ShiftY;
            int numCols = grid.GetLength(1) + ShiftX;

            for (int rows = ShiftY; rows < numRows; rows++)
            {
                for (int cols = ShiftX; cols < numCols; cols++)
                {
                    grid[rows - ShiftY, cols - ShiftX] = world.GetCellAtLocation(rows, cols).ToString();
                }
            }
        }