Пример #1
0
    public void CreateWorld()
    {
        Node size = SaveLoadMap.newWorldSize;
        int  szx  = size.x;
        int  szy  = size.y;

        Map           = new World(size);
        Map.terrain   = mapGenerator.GetRandomTerrain(size);
        Map.elevation = mapGenerator.GetRandomElevation(size);
        //Map.elevation = new float[szx, szy];

        //until we've successfully placed the map entrance/exit, keep trying
        bool success = false;

        do
        {
            success = CreateMapEntrance(szx, szy);
        } while (!success);

        money.Money = 10000;

        actionSelecter.FreshActions();

        if (notifications != null)
        {
            notifications.FreshEvents();
        }
        ProductivityController.CreateProductivities();
        ResourcesDatabase.CreateWhitelist();
        money.FreshStartingQuarter((int)timeController.CurrentSeason, timeController.CurrentYear);
        timeController.finances.LoadFinancialReports();
    }
Пример #2
0
    public void CreateWorld()
    {
        Node size = SaveLoadMap.newWorldSize;
        int  szx  = (int)size.X;
        int  szy  = (int)size.Y;

        Map         = new World(size);
        Map.terrain = mapGenerator.GetRandomTerrain(size);

        SpawnStructure("MapEntrance", 0, 0, 0);
        SpawnStructure("MapExit", szx - 1, szy - 1, 0);

        money.Sheqels = 1000;
        labor.InstantiateLabor();

        actionSelecter.FreshActions();

        if (notifications != null)
        {
            notifications.FreshEvents();
        }
    }