public void Update()
 {
     this.removedList.Clear();
     for (int i = 0; i < this.acceptUpdatedObjectList.Count; i++)
     {
         ApolloObject item = this.acceptUpdatedObjectList[i];
         if (item.Removable)
         {
             this.removedList.Add(item);
         }
         else
         {
             item.Update();
         }
     }
     for (int j = 0; j < this.removedList.Count; j++)
     {
         ApolloObject obj3 = this.removedList[j];
         if (obj3 != null)
         {
             this.RemoveObject(obj3);
             this.RemoveAcceptUpdatedObject(obj3);
         }
     }
     this.removedList.Clear();
 }
Esempio n. 2
0
 public void Update()
 {
     for (int i = 0; i < this.acceptUpdatedObjectList.Count; i++)
     {
         ApolloObject item = this.acceptUpdatedObjectList[i];
         if (item.Removable)
         {
             this.removedUpdatableList.Add(item);
         }
         else
         {
             item.Update();
         }
     }
     for (int j = 0; j < this.removedUpdatableList.Count; j++)
     {
         ApolloObject obj3 = this.removedUpdatableList[j];
         if (obj3 != null)
         {
             this.RemoveAcceptUpdatedObject(obj3);
         }
     }
     this.removedUpdatableList.Clear();
     DictionaryView <ulong, ApolloObject> .Enumerator enumerator = this.dictObjectCollection.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <ulong, ApolloObject> current = enumerator.Current;
         ApolloObject obj4 = current.Value;
         if (obj4.Removable)
         {
             this.removedReflectibleList.Add(obj4);
         }
     }
     for (int k = 0; k < this.removedReflectibleList.Count; k++)
     {
         ApolloObject obj5 = this.removedReflectibleList[k];
         if (obj5 != null)
         {
             this.RemoveObject(obj5);
         }
     }
     this.removedReflectibleList.Clear();
 }
Esempio n. 3
0
 public void Update()
 {
     for (int i = 0; i < this.acceptUpdatedObjectList.Count; i++)
     {
         ApolloObject apolloObject = this.acceptUpdatedObjectList[i];
         if (apolloObject.Removable)
         {
             this.removedUpdatableList.Add(apolloObject);
         }
         else
         {
             apolloObject.Update();
         }
     }
     for (int j = 0; j < this.removedUpdatableList.Count; j++)
     {
         ApolloObject apolloObject2 = this.removedUpdatableList[j];
         if (apolloObject2 != null)
         {
             this.RemoveAcceptUpdatedObject(apolloObject2);
         }
     }
     this.removedUpdatableList.Clear();
     DictionaryView <ulong, ApolloObject> .Enumerator enumerator = this.dictObjectCollection.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <ulong, ApolloObject> current = enumerator.Current;
         ApolloObject value = current.get_Value();
         if (value.Removable)
         {
             this.removedReflectibleList.Add(value);
         }
     }
     for (int k = 0; k < this.removedReflectibleList.Count; k++)
     {
         ApolloObject apolloObject3 = this.removedReflectibleList[k];
         if (apolloObject3 != null)
         {
             this.RemoveObject(apolloObject3);
         }
     }
     this.removedReflectibleList.Clear();
 }