Exemplo n.º 1
0
        public void Remove(uint id)
        {
            TowerHit towerHit = null;

            this._data.TryGetValue(id, ref towerHit);
            if (towerHit != null)
            {
                towerHit.Clear();
            }
            this._data.Remove(id);
        }
Exemplo n.º 2
0
 public void Clear()
 {
     DictionaryView <uint, TowerHit> .Enumerator enumerator = this._data.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <uint, TowerHit> current = enumerator.get_Current();
         TowerHit value = current.get_Value();
         if (value != null)
         {
             value.Clear();
         }
     }
     this._data.Clear();
 }
Exemplo n.º 3
0
 public void Clear()
 {
     DictionaryView <uint, TowerHit> .Enumerator enumerator = this._data.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <uint, TowerHit> current = enumerator.Current;
         TowerHit hit = current.Value;
         if (hit != null)
         {
             hit.Clear();
         }
     }
     this._data.Clear();
 }