private void Consume() { var cargoes = Storages.PickUpAll().ToList(); foreach (var pop in Pops) { pop.ConsumeEssential(cargoes); } foreach (var pop in Pops) { pop.ConsumeMaterial(cargoes); } foreach (var pop in Pops) { pop.ConsumeLuxury(cargoes); } Storages.Store(cargoes); }
public void CarryIn(IEnumerable <Cargo> cargoes) { Storages.Store(cargoes); }