コード例 #1
0
 /// <summary>
 ///     Compares the ItemID and Type values of ItemStack
 /// </summary>
 /// <param name="original">Original Item</param>
 /// <param name="comparer">Item to Compare Against</param>
 /// <returns>True if ItemID and Type of both Items match, otherwise false</returns>
 public static bool Compare(this ItemStack original, ItemStack comparer)
 {
     // Again, we'll ignore the size of the stack for now
     return(original != null && comparer != null && original.Compare(comparer.As <ItemBase>()));           // && original.mnAmount == comparer.mnAmount;
 }