Exemple #1
0
 private void loadSaw(ref List <MetalBar> pile, MetalBar pc, MetalBar rawMat, ref Saw cutter, ref int rmTracker)
 {
     if (pile.Count() > 0)
     {
         int dropToUse = matchClosestDrop(pile, pc);
         if (dropToUse == -1)
         {
             cutter.load(rawMat);
             rmTracker++;
         }
         else
         {
             cutter.load(pile[dropToUse]);
             pile.RemoveAt(dropToUse);
         }
     }
     else
     {
         cutter.load(rawMat);
         rmTracker++;
     }
 }
Exemple #2
0
 private void loadSaw(ref List<MetalBar> pile, MetalBar pc, MetalBar rawMat, ref Saw cutter, ref int rmTracker)
 {
     if(pile.Count() > 0)
     {
         int dropToUse = matchClosestDrop(pile, pc);
         if(dropToUse == -1)
         {
             cutter.load(rawMat);
             rmTracker++;
         }
         else
         {
             cutter.load(pile[dropToUse]);
             pile.RemoveAt(dropToUse);
         }
     }
     else
     {
         cutter.load(rawMat);
         rmTracker++;
     }
 }