public void ProcessCell(IntVec3 cell) { if (sparklesEnabled) { cell.ThrowSparkle(parent.Map); } if (cell.Priority(parent.Map) != StoragePriority.Unstored && compWarehouse != null) { List <Thing> cellThings = cell.GetItemList(parent.Map, true); for (int i = 0; i < cellThings.Count; i++) { Thing cellThing = cellThings[i]; compWarehouse.QueueThing(cellThing); } } }
public void ProcessCell(IntVec3 cell) { if (sparklesEnabled) { cell.ThrowSparkle(); } if (cell.Priority() != StoragePriority.Unstored) { List <Thing> cellThings = cell.GetItemList(true); for (int i = 0; i < cellThings.Count; i++) { Thing cellThing = cellThings[i]; if (!ReceiveThing(cellThing) && compWarehouse != null) { compWarehouse.QueueThing(cellThing); } else { break; } } } }
public void ProcessCell(IntVec3 cell) { if (sparklesEnabled) cell.ThrowSparkle(parent.Map); if (cell.Priority(parent.Map) != StoragePriority.Unstored) { List<Thing> cellThings = cell.GetItemList(parent.Map, true); for (int i = 0; i < cellThings.Count; i++) { Thing cellThing = cellThings[i]; if (!ReceiveThing(cellThing) && compWarehouse != null) { compWarehouse.QueueThing(cellThing); } else { break; } } } }