Пример #1
0
        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);
        }
Пример #2
0
 public void CarryIn(IEnumerable <Cargo> cargoes)
 {
     Storages.Store(cargoes);
 }