csharp
public readonly record struct CraftingResultWhat a craft would do.
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 RecipeWhich recipe.
public IReadOnlyList<RecipeItem> ConsumedWhat to take, by address.
public IReadOnlyList<RecipeItem> ProducedWhat to give, by address.
public bool QualityWhether it came out better than usual.
public int SkillGainedHow 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