Beispiel #1
0
 internal void Order(OrderItem item)
 {
     if (items.ContainsKey(item.Name))
         items[item.Name]++;
     else
         items.Add(item.Name, 1);
     buildOrders.Add(item);
 }
Beispiel #2
0
 internal void Cancel(OrderItem item)
 {
     if (items.ContainsKey(item.Name))
     {
         items[item.Name]--;
         buildOrders.Add(item);
     }
 }
Beispiel #3
0
 internal void Cancel(OrderItem item)
 {
     if (units.ContainsKey(item.Name))
     {
         units[item.Name] -= multiplier;
         buildOrders.Add(item);
     }
 }
Beispiel #4
0
        internal void Order(OrderItem item)
        {
            if (units.ContainsKey(item.Name))
                units[item.Name] += multiplier;
            else
                units.Add(item.Name, multiplier);

            buildOrders.Add(item);
        }
Beispiel #5
0
 internal void Order(OrderItem item)
 {
     if (items.ContainsKey(item.Name))
         item.Count = ++items[item.Name];
     else
     {
         item.Count = 1;
         items.Add(item.Name, item.Count);
     }
     buildOrders.Add(item);
 }