Ejemplo n.º 1
0
 public static bool ShouldUnburden(IItemGetter record) => record switch
 {
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a consumed item to the recipe
 /// </summary>
 /// <param name="cobj"></param>
 /// <param name="item">Item to consume</param>
 /// <param name="count">Item count</param>
 public static void AddCraftingRequirement(this ConstructibleObject cobj, IItemGetter item, int count)
 {
     cobj.AddCraftingRequirement(new FormLink <IItemGetter>(item), count);
 }