public DropItem CreateItem(string InPrefab, IDropDownEffect InDropdownEffect, IPickupEffect InPickupEffect) { DropItem dropItem = new DropItem(InPrefab, InDropdownEffect, InPickupEffect); this.ActiveItems.Add(dropItem); return(dropItem); }
public void Bind(DropItem item) { this.Item = item; DebugHelper.Assert(this.Item != null); this.Item.SetLocation(this.StartPos); this.Current = this.StartPos; }
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(); }
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(); }
public void RemoveItemImmediate(DropItem item) { this.ActiveItems.Remove(item); }
public void RemoveItem(DropItem item) { this.DeprecatedItem.Add(item); }
public virtual void Bind(DropItem item) { this.Item = item; }
public void Bind(DropItem item) { this.Item = item; DebugHelper.Assert(this.Item != null); this.Item.SetLocation(this.InitPos); }