示例#1
0
 public RefineryDriver(StaticState configuredStaticState)
 {
     state            = new SystemState(configuredStaticState);
     blockCollector   = new BlockCollector(configuredStaticState.InventoryBlockNames);
     inventoryScanner = new InventoryScanner(configuredStaticState.IngotTypes.AllIngotItemTypes, configuredStaticState.OreTypes.All);
     refineryWorklist = new RefineryWorklist(configuredStaticState.OreTypes, configuredStaticState.IngotTypes, configuredStaticState.RefineryFactory, configuredStaticState.Blueprints);
     ingotWorklist    = new IngotWorklist(state.Ingots);
     displayRenderer  = new DisplayRenderer();
 }
示例#2
0
 public RefineryWorkAllocator(RefineryWorklist refineryWorklist, Dictionary <ItemType, List <OreDonor> > oreDonors)
 {
     this.refineryWorklist = refineryWorklist;
     this.oreDonors        = oreDonors;
 }
 public RefineryIterator(RefineryWorklist worklist, ItemType ingotType)
 {
     this.worklist  = worklist;
     this.ingotType = ingotType;
 }