public static IItem CreateItem(this IItemFactory itemFactory, ItemHandle itemHandle, int amount)
 {
     return(itemFactory.CreateItem(itemHandle.ToString(), amount));
 }
Exemple #2
0
 private ItemMeta CreateItemMeta <T>(ItemHandle itemHandle, string displayName, int defaultWeight = 1, ItemFlags flags = ItemFlags.None) where T : IItem
 {
     return(this.CreateItemMeta <T>(itemHandle.ToString(), displayName, defaultWeight, flags));
 }
 public static ICollection <IItem> GetItems(this IInventory inventory, ItemHandle handle)
 {
     return(inventory.GetItems(handle.ToString()));
 }