public void AddSubBiome(Biome main, Biome sub) { try { main.AddBiome(sub); Logger.AddLog($"Added the sub Biome {sub.Name} to {main.Name}"); BiomesChanged.Invoke(this, null); } catch { Logger.AddLog($"Unable to add the sub Biome {sub.Name} to {main.Name}"); } }
public void EditBiome(Biome b, double uk, double lk, double up, double lp, double humidity, string name, double startYear, double endYear, string description, string keys) { try { TempatureRange t = new TempatureRange(uk, lk); PressureRange p = new PressureRange(up, lp); Year sy = new Year(startYear); Year ey = new Year(endYear); List <string> keywords = keys.ToUpper().Split(' ').ToList(); b.Edit(b.Biomes, t, p, humidity, name, sy, ey, description, keywords); Logger.AddLog($"Edited the biome: {b.Name}"); BiomesChanged.Invoke(this, null); } catch { Logger.AddLog($"Unable to add the biome: {b.Name}"); } }