/// <summary> /// Update the name of the boss at the current location. /// Selection tier should be updated first to ensure correct /// raid boss is selected. /// </summary> /// <param name="index">Index of the new boss in the tier list.</param> public void UpdateBoss(int index) { string bossName = AllBosses[SelectionTier].ElementAt(index); Locations[CurrentLocation] = new RaidTrainLoc(Locations[CurrentLocation].Time, Locations[CurrentLocation].Location, bossName); Tier = SelectionTier; }
/// <summary> /// Update information for a location. /// </summary> /// <param name="time">New time of the raid.</param> /// <param name="location">New location of the raid.</param> public void UpdateRaidInformation(string time = null, string location = null) { if (time != null) { Locations[CurrentLocation] = new RaidTrainLoc(time, Locations[CurrentLocation].Location, Locations[CurrentLocation].BossName); } if (location != null) { Locations[CurrentLocation] = new RaidTrainLoc(Locations[CurrentLocation].Time, location, Locations[CurrentLocation].BossName); } }