Esempio n. 1
0
        public void GenerateMap()
        {
            var startingTechs = TechCanon.GetTechsOfPreviousEras(StartingEra).Concat(TechCanon.GetEntryTechsOfEra(StartingEra));

            var variables = new MapGenerationVariables()
            {
                CellCountX = Mathf.RoundToInt(DimensionsInCells.x),
                CellCountZ = Mathf.RoundToInt(DimensionsInCells.y),
                ContinentalLandPercentage = ContinentalLandPercentage,
                Civilizations             = ChosenTemplates.ToList(),
                StartingTechs             = startingTechs
            };

            MapGenerator.GenerateMap(
                SelectedMapTemplate,
                variables
                );

            UIAnimator.SetTrigger(UIAnimatorTrigger);
        }