Esempio n. 1
0
 public static IItem CreateItem(this IItemFactory itemFactory, ItemHandle itemHandle, int amount)
 {
     return(itemFactory.CreateItem(itemHandle.ToString(), amount));
 }
Esempio n. 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));
 }
Esempio n. 3
0
 public static ICollection <IItem> GetItems(this IInventory inventory, ItemHandle handle)
 {
     return(inventory.GetItems(handle.ToString()));
 }