//internal Value getConsumption(Product whom) //{ // foreach (Storage stor in takenAwayLastTurn) // if (stor.Product == whom) // return stor; // return new Value(0f); //} public void SetStatisticToZero() { used.setZero(); //collection.PerformAction(x => !x.Value.Product.IsStorable, x => x.Value.SetZero()); Storage record; if (collection.TryGetValue(Product.Education, out record)) { record.SetZero(); } }
//internal Value getConsumption(Product whom) //{ // foreach (Storage stor in takenAwayLastTurn) // if (stor.getProduct() == whom) // return stor; // return new Value(0f); //} public void setStatisticToZero() { used.setZero(); }