/// <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); }
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); }
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); }