/// <summary> /// Checks if this item can be stacked with another item. To stack, both items must contain the same /// stat modifiers, name, description, value, and graphic index. /// </summary> /// <param name="source">Item to check if can stack on this item</param> /// <returns> /// True if the two items can stack on each other, else false /// </returns> public override bool CanStack(ItemEntityBase source) { var s = source as ItemEntity; if (s == null) { return(false); } return(CanStack(s)); }
/// <summary> /// Checks if this item can be stacked with another item. To stack, both items must contain the same /// stat modifiers, name, description, value, and graphic index. /// </summary> /// <param name="source">Item to check if can stack on this item</param> /// <returns> /// True if the two items can stack on each other, else false /// </returns> /// <exception cref="MethodAccessException">The client has no way to know if two ItemEntities can stack since /// it doesn't always know everything about two items.</exception> public override bool CanStack(ItemEntityBase source) { throw new MethodAccessException("The client has no way to know if two ItemEntities can stack since it doesn't" + " always know everything about two items."); }
/// <summary> /// Checks if this item can be stacked with another item. To stack, both items must contain the same /// stat modifiers, name, description, value, and graphic index. /// </summary> /// <param name="source">Item to check if can stack on this item</param> /// <returns> /// True if the two items can stack on each other, else false /// </returns> public override bool CanStack(ItemEntityBase source) { var s = source as ItemEntity; if (s == null) return false; return CanStack(s); }
/// <summary> /// Checks if this item can be stacked with another item. To stack, both items must contain the same /// stat modifiers, name, description, value, and graphic index. /// </summary> /// <param name="source">Item to check if can stack on this item</param> /// <returns> /// True if the two items can stack on each other, else false /// </returns> /// <exception cref="MethodAccessException">The client has no way to know if two ItemEntities can stack since /// it doesn't always know everything about two items.</exception> public override bool CanStack(ItemEntityBase source) { throw new MethodAccessException("The client has no way to know if two ItemEntities can stack since it doesn't" + " always know everything about two items."); }