示例#1
0
 /// <summary>
 /// Tries to stack this item with the specified one.
 /// </summary>
 /// <param name="pi"></param>
 /// <returns></returns>
 public bool TryStack(PlayerItem pi)
 {
     if (this.IsEmpty() || pi.IsEmpty())
     {
         return(false);
     }
     return(this.RInventoryItem.TryStack(pi.RInventoryItem) != InventoryItem.MergeResult.Failed);
 }
示例#2
0
        public bool TryStack(PlayerItem pi)
        {
            Contract.Requires(pi != null);

            if (this.IsEmpty() || pi.IsEmpty())
            {
                return(false);
            }
            return(this.RInventoryItem.TryStack(pi.RInventoryItem) != InventoryItem.MergeResult.Failed);
        }
示例#3
0
        public bool TryStack(PlayerItem pi)
        {
            Contract.Requires(pi != null);

            if (this.IsEmpty() || pi.IsEmpty())
            {
                return false;
            }
            return (this.RInventoryItem.TryStack(pi.RInventoryItem) != InventoryItem.MergeResult.Failed);
        }