Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }