public void AddCost(ICostType cType, ICore core, int step, double cost) { foreach (var costStorage in CostStorages) { costStorage.AddCost(cType, core, step, cost); } }
public void AddCost(ICostType cType, ICore core, int step, double cost) { if (step != currentStep) { decStorage = new CostReviewStorage.CostStorage(); currentStep = step; } decStorage.AddCost(cType, core, step, cost); }
public void AddCost(ICostType cType, ICore core, int step, double cost) { { if (!costs.ContainsKey(step)) { costs.Add(step, new Dictionary <ICore, Dictionary <ICostType, double> >()); } var stepD = costs[step]; if (!stepD.ContainsKey(core)) { stepD.Add(core, new Dictionary <ICostType, double>()); } var coreD = stepD[core]; if (!coreD.ContainsKey(cType)) { coreD.Add(cType, 0f); } coreD[cType] += cost; } }
public void AddCost(ICostType cType, ICore core, int step, double cost) { decoratedStorage.AddCost(cType, totalCore, step, cost); }
public void AddCost(ICostType cType, ICore core, int step, double cost) { smStorage.AddCost(cType, core, step, cost); }