Skip to content

PeekedRecipe

Namespace Nfty.Core.Formats in assembly Nfty.Core.

public record PeekedRecipe

One recipe's manifests: its own, and one per ingredient nested inside it.

Constructors

PeekedRecipe(RecipeManifest, IReadOnlyList<IngredientManifest>)

public PeekedRecipe(RecipeManifest Manifest, IReadOnlyList<IngredientManifest> Ingredients);

Parameters

  • Manifest (RecipeManifest) - The recipe manifest — layer order, rules, absent percents.
  • Ingredients (IReadOnlyList<IngredientManifest>) - Its ingredients' manifests, ordinally by id.

Properties

Ingredients

public IReadOnlyList<IngredientManifest> Ingredients { get; init; }

Its ingredients' manifests, ordinally by id.

Manifest

public RecipeManifest Manifest { get; init; }

The recipe manifest — layer order, rules, absent percents.

Methods

Of(LoadedRecipe)

public static PeekedRecipe Of(LoadedRecipe recipe);

The same recipe, projected off one that is already open and decoded.

Parameters

  • recipe (LoadedRecipe) - A loaded recipe.

Returns. Its manifest-only form.