示例#1
0
    /// <summary>
    /// Generates an in-game map.
    /// </summary>
    public void GenerateMap()
    {
        cellAutoGenerator.GenerateCellAuto(mapSize, smoothingIterations, seed);
        marchCubesGenerator.CreateCubeGrid(cellAutoGenerator.GetCellMap(), cubeSize);

        marchCubesGenerator.GenerateMesh();

        objectPlacement.LocateFloorTilesPos(marchCubesGenerator.GetCubeGrid(), cubeSize);
        objectPlacement.PlaceRandomObjects(seed);
    }