/// <summary> /// Constructor. /// </summary> /// <param name="row">The <see cref="Row"/> value.</param> /// <param name="column">The <see cref="Column"/> value.</param> /// <param name="biome">The <see cref="Biome"/> value.</param> /// <param name="continentIndex">The <see cref="ContinentIndex"/> value.</param> internal MapSquarePivot(int row, int column, BiomePivot biome, int continentIndex) { Row = row; Column = column; Biome = biome; HasBonus = Tools.Randomizer.NextDouble() < Biome.BonusApperanceRate; ContinentIndex = continentIndex; }
/// <summary> /// Changes the <see cref="BiomePivot"/> of this instance. /// </summary> /// <param name="biome">The biome.</param> internal void ChangeBiome(BiomePivot biome) { Biome = biome; HasBonus = Tools.Randomizer.NextDouble() < Biome.BonusApperanceRate; }