/********* ** Private methods *********/ /**** ** Event handlers ****/ /// <summary>The method invoked when a location is added or removed.</summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { this.Machines.Clear(); foreach (GameLocation location in this.Factory.GetLocationsWithChests()) { this.Machines[location] = this.Factory.GetMachinesIn(location, this.Helper.Reflection).ToArray(); } }
/// <summary>The method invoked when a location is added or removed.</summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { try { this.ReloadAllMachines(); } catch (Exception ex) { this.HandleError(ex, "updating locations"); } }
/// <summary>The method invoked when a location is added or removed.</summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { this.VerboseLog("Location list changed, reloading all machines."); try { this.MachineGroups.Clear(); foreach (GameLocation location in CommonHelper.GetLocations()) { this.ReloadQueue.Add(location); } } catch (Exception ex) { this.HandleError(ex, "updating locations"); } }
private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { addSimpleMachinesToAutomation(); }
private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { this.bridges.Clear(); }
private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { this.Locations = CJB.GetAllLocations().ToArray(); }
private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e) { CJBCheatsMenu.Locations = CJBCheatsMenu.GetAllLocations().ToArray(); }