Ejemplo n.º 1
0
        public void initialize()
        {
            market.initialize();

            //FactoryType.getResourceTypes(); // FORCING FactoryType to initializate?

            updateStatus("Reading provinces..");
            Province.preReadProvinces(Game.map, this);
            seaProvinces = getSeaProvinces();
            deleteSomeProvinces();

            updateStatus("Making grid..");
            grid = new VoxelGrid(map.getWidth(), map.getHeight(), Options.cellMultiplier * map.getWidth(), map, Game.seaProvinces, this, Province.allProvinces);

            updateStatus("Making countries..");
            Country.makeCountries(this);

            updateStatus("Making population..");
            сreateRandomPopulation();

            setStartResources();
            if (!devMode)
            {
                makeHelloMessage();
            }
            updateStatus("Finishing generation..");
        }
Ejemplo n.º 2
0
        public void InitializeNonUnityData()
        {
            market.initialize();

            World.Create(mapTexture, !readMapFormFile);
            //Game.updateStatus("Making grid..");
            grid = new VoxelGrid(mapTexture.getWidth(), mapTexture.getHeight(), Options.cellMultiplier * mapTexture.getWidth(), mapTexture, World.GetAllProvinces());

            if (!devMode)
            {
                makeHelloMessage();
            }
            updateStatus("Finishing generation..");
        }