Ejemplo n.º 1
0
 public JobStockUpkeep(Scheduler owner, JobInventory tracker, GridPolicy assmpolicy, bool ignoresurvkits, string tick)
 {
     Owner              = owner;
     Tracker            = tracker;
     AssemblerPolicy    = assmpolicy;
     IgnoreSurvivalKits = ignoresurvkits;
     Tick              = Owner.Subscribe(RecalculateStock, tick);
     Owner.BlockFound += BlockFound;
 }
Ejemplo n.º 2
0
 public JobStockUpkeep(Scheduler owner, JobInventory tracker)
 {
     Owner              = owner;
     Tracker            = tracker;
     AssemblerPolicy    = GridPolicy.Types.SameGrid;
     IgnoreSurvivalKits = true;
     Tick              = "update100s";
     Owner.BlockFound += BlockFound;
     Owner.Loading    += Load;
     Owner.Saving     += Save;
 }
 /// <summary>This constructor uses provided paramaters to configure the job.</summary>
 /// <param name="manager">Screen manager instance to use.</param>
 /// <param name="tracker">Inventory tracker instance to use.</param>
 public JobInventoryMonitor(ScreenManager manager, JobInventory tracker)
 {
     Manager = manager;
     Tracker = tracker;
 }