Beispiel #1
0
    private IEnumerator Generate_SinglePlayer()
    {
        int width  = settings.width;
        int height = settings.height;

        map = new Map(width, height);


        starter.ChangeLoadingInfo("Initializing Tiles");
        yield return(map.Setup());

        yield return(GameObject.Find("LocalMap").GetComponent <LocalMap>().Setup(width, height));


        starter.ChangeLoadingInfo("Building Rock Layers");
        yield return(RockBase.AssignRockBases(map));

        starter.ChangeLoadingInfo("Building LandMass");


        starter.ChangeLoadingInfo("Building HeatMap");
        starter.ChangeLoadingInfo("Building MoistureMap");
        starter.ChangeLoadingInfo("Building Soil Layers");


        starter.ChangeLoadingInfo("Building WorldMesh");
        yield return(meshController.BuildMap(settings));

        starter.ChangeLoadingInfo("Placing Players");



        starter.GeneratorFinish();
    }