Vixen
c7401864
csharp
public readonly record struct CraftingResult

What a craft would do.

Read the guide page for this →

Remarks

⚠ A list, not a transaction — the same rule the whole framework has by now. Nothing here moves an item; the caller's containers do, and doc 28's spine is what keeps a crafting library from depending on an inventory.

Fields and properties (5)

  • public DefId Recipe

    Which recipe.

  • public IReadOnlyList<RecipeItem> Consumed

    What to take, by address.

  • public IReadOnlyList<RecipeItem> Produced

    What to give, by address.

  • public bool Quality

    Whether it came out better than usual.

  • public int SkillGained

    How much the crafter learned.

Methods (1)

  • public CraftingResult(DefId Recipe, IReadOnlyList<RecipeItem> Consumed, IReadOnlyList<RecipeItem> Produced, bool Quality, int SkillGained)

    What a craft would do.

Used by (2)

  • CrafterVixen.Gameplay.Crafting
  • CraftingTestsVixen.Gameplay.Crafting.Tests