public void Init(IExampleContext context, ShapeIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, ValueMap initialShapeValues) { _worldGeneratorConfig = worldGeneratorConfig; _config = config; _initialShapeValues = initialShapeValues; base.Init(context, config, worldGeneratorConfig); Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); }
public void Init(IExampleContext context, WaterIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, IRandomNumberGenerator rng, ValueMap heightMapValues) { _config = config; _heightMapValues = heightMapValues; base.Init(context, config, worldGeneratorConfig); _rng = rng; Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); _tileset = worldGeneratorConfig.Tileset; }
public void Init(IExampleContext context, VegetationIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, IRandomNumberGenerator rng, ValueMap soilMap, ValueMap heightMap) { _rng = rng; _config = config; _soilMap = soilMap; _heightMap = heightMap; base.Init(context, config, worldGeneratorConfig); Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); _plants = new Plant[worldGeneratorConfig.XSize, worldGeneratorConfig.YSize]; _initialSeeds = (int)(worldGeneratorConfig.XSize * worldGeneratorConfig.YSize * _config.InitialSeedsPerPosition); _tileMatricesByte = context.TileMatricesByLayer; }
public void Init(IExampleContext context, SoilIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, IRandomNumberGenerator rng, ValueMap heightMapValues, ValueMap waterMapValues) { _heightMapValues = heightMapValues; _waterMapValues = waterMapValues; _config = config; base.Init(context, config, worldGeneratorConfig); _rng = rng; Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); new Position(_rng.Next(10000), _rng.Next(10000)); _tileMatricesByte = context.TileMatricesByLayer; _tileset = worldGeneratorConfig.Tileset; }
public void Init(IExampleContext context, WalkabilityIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, ValueMap waterMap) { _context = context; _config = config; _waterMap = waterMap; Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); base.Init(context, config, worldGeneratorConfig); }
protected void Init(IExampleContext context, MapIngredientConfig mapIngredientConfig, WorldGeneratorConfig worldGeneratorConfig) { GameContext = context; Config = mapIngredientConfig; Config.OnUpdate += () => { #if UNITY_EDITOR EditorCoroutines.StartCoroutine(CleanUpAndStartRecalculating(), this); #endif RefreshVisualisation(); }; }
public new void Init(IExampleContext context, MapIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig) { Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); base.Init(context, config, worldGeneratorConfig); }
public void Init(IExampleContextManager contextManager, BuildingIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, IRandomNumberGenerator rng, ValueMap civilizationMap, ValueMap soilMap, ValueMap vegetationMapValues, ValueMap debugMapValues) { _rng = rng; _config = config; _soilMap = soilMap; _walkability = contextManager.Current.Walkability; _vegetationMap = vegetationMapValues; base.Init(contextManager.Current, config, worldGeneratorConfig); Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); _tileMatricesByte = GameContext.TileMatricesByLayer; _tileset = worldGeneratorConfig.Tileset; _gameConfig = worldGeneratorConfig.GameConfig; _grid = new Grid(contextManager, true); _pathfinder = Pathfinder.Create(contextManager); }
public void Init(IExampleContext context, InitialHeightIngredientConfig config, WorldGeneratorConfig worldGeneratorConfig, IRandomNumberGenerator rng) { _config = config; _rng = rng; _noiseOffset = new Position(_rng.Next(10000), _rng.Next(10000)); base.Init(context, config, worldGeneratorConfig); Values = new ValueMap(1, worldGeneratorConfig.XSize, worldGeneratorConfig.YSize); }