Пример #1
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="locations">The game's list of locations.</param>
 /// <param name="activeMineLocations">The game's list of active mine locations.</param>
 /// <param name="activeVolcanoLocations">The game's list of active volcano locations.</param>
 public WorldLocationsTracker(ObservableCollection <GameLocation> locations, IList <MineShaft> activeMineLocations, IList <VolcanoDungeon> activeVolcanoLocations)
 {
     this.LocationListWatcher        = WatcherFactory.ForObservableCollection(locations);
     this.MineLocationListWatcher    = WatcherFactory.ForReferenceList(activeMineLocations);
     this.VolcanoLocationListWatcher = WatcherFactory.ForReferenceList(activeVolcanoLocations);
 }
Пример #2
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="locations">The game's list of locations.</param>
 /// <param name="activeMineLocations">The game's list of active mine locations.</param>
 public WorldLocationsTracker(List <GameLocation> locations, IList <MineShaft> activeMineLocations)
 {
     this.LocationListWatcher     = WatcherFactory.ForReferenceList(locations);
     this.MineLocationListWatcher = WatcherFactory.ForReferenceList(activeMineLocations);
 }