/// <summary>
 /// 转移物品
 /// </summary>
 /// <param name="container">容器</param>
 /// <param name="item">物品</param>
 public void transferItem(SelectableContainerDisplay <T> container, T item)
 {
     if (!containsItem(item))
     {
         return;
     }
     container.acceptTransfer(this, prepareTransfer(item));
 }
Exemple #2
0
 /// <param name="container">容器</param>
 public virtual void setEquip(SelectableContainerDisplay <E> container, E item)
 {
     setEquip(item);
 }
 /// <summary>
 /// 接受转移
 /// </summary>
 /// <param name="container">容器</param>
 /// <param name="item">物品</param>
 protected virtual void acceptTransfer(SelectableContainerDisplay <T> container, T item)
 {
     addItem(item);
 }
 /// <summary>
 /// 配置组件
 /// </summary>
 public virtual void configure(SelectableContainerDisplay <T> container, int index)
 {
     this.container = container;
     this.index     = index;
     configure();
 }