Beispiel #1
0
 /*********
 ** 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();
     }
 }
Beispiel #2
0
 /// <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();
 }
Beispiel #5
0
 private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e)
 {
     this.bridges.Clear();
 }
Beispiel #6
0
 private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e)
 {
     this.Locations = CJB.GetAllLocations().ToArray();
 }
Beispiel #7
0
 private void LocationEvents_LocationsChanged(object sender, EventArgsGameLocationsChanged e)
 {
     CJBCheatsMenu.Locations = CJBCheatsMenu.GetAllLocations().ToArray();
 }