Example #1
0
        public DropItem CreateItem(string InPrefab, IDropDownEffect InDropdownEffect, IPickupEffect InPickupEffect)
        {
            DropItem dropItem = new DropItem(InPrefab, InDropdownEffect, InPickupEffect);

            this.ActiveItems.Add(dropItem);
            return(dropItem);
        }
Example #2
0
 public void Bind(DropItem item)
 {
     this.Item = item;
     DebugHelper.Assert(this.Item != null);
     this.Item.SetLocation(this.StartPos);
     this.Current = this.StartPos;
 }
Example #3
0
 public void UpdateLogic(int delta)
 {
     HashSet <object> .Enumerator enumerator = this.ActiveItems.GetEnumerator();
     while (enumerator.MoveNext())
     {
         DropItem dropItem = (DropItem)enumerator.get_Current();
         if (dropItem != null)
         {
             dropItem.UpdateLogic(delta);
         }
     }
     for (int i = 0; i < this.DeprecatedItem.get_Count(); i++)
     {
         this.ActiveItems.Remove(this.DeprecatedItem.get_Item(i));
     }
     this.DeprecatedItem.Clear();
 }
Example #4
0
 public void UpdateLogic(int delta)
 {
     HashSet <object> .Enumerator enumerator = this.ActiveItems.GetEnumerator();
     while (enumerator.MoveNext())
     {
         DropItem current = (DropItem)enumerator.Current;
         if (current != null)
         {
             current.UpdateLogic(delta);
         }
     }
     for (int i = 0; i < this.DeprecatedItem.Count; i++)
     {
         this.ActiveItems.Remove(this.DeprecatedItem[i]);
     }
     this.DeprecatedItem.Clear();
 }
Example #5
0
 public void RemoveItemImmediate(DropItem item)
 {
     this.ActiveItems.Remove(item);
 }
Example #6
0
 public void RemoveItem(DropItem item)
 {
     this.DeprecatedItem.Add(item);
 }
 public virtual void Bind(DropItem item)
 {
     this.Item = item;
 }
Example #8
0
 public void Bind(DropItem item)
 {
     this.Item = item;
     DebugHelper.Assert(this.Item != null);
     this.Item.SetLocation(this.InitPos);
 }