コード例 #1
0
ファイル: Form1.cs プロジェクト: romanzedd/FSTSP
        private void generateSpace(int areaSize)
        {
            grid = new SquareGrid(areaSize, areaSize, BaseConstants.areaHeight);
            GridGeneration.fillGrid(grid, areaSize, BaseConstants.areaHeight);

            groundGrid       = new SquareGrid(areaSize, areaSize, 1);
            groundGrid.walls = grid.walls.Where(location => location.z == 0).ToHashSet();

            outputTextBox.Text += $"Space of {areaSize * BaseConstants.PolygonSize / 1000} km2 ({areaSize * areaSize * BaseConstants.areaHeight} polygons) generated successfully\n";
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: romanzedd/FSTSP
 private void generateSpace(int areaSize, int areaHeight)
 {
     grid = new SquareGrid(areaSize, areaSize, areaHeight);
     GridGeneration.fillGrid(grid, areaSize, areaHeight);
     outputTextBox.Text += $"Space of {areaSize * BaseConstants.PolygonSize / 1000} km2 ({areaSize * areaSize} polygons) generated successfully\n";
 }