LoadedRecipe¶
Namespace Nfty.Core.Formats in assembly Nfty.Core.
Owns its ingredients; disposing it disposes them and their images.
Constructors¶
LoadedRecipe()¶
Properties¶
Ingredients¶
Its ingredients, each owning its own images.
Manifest¶
The recipe's manifest.
Methods¶
Dispose()¶
Frees every image this object owns. Reading an archive eagerly decodes them all, so this is how a caller gives them back.
Empty(string, string)¶
A fresh recipe with no layers, no rules and no ingredients - what a wizard creates before the author fills it. Not yet generatable (its layer order is empty).
Parameters
id(string) - The recipe id.name(string) - The recipe's display name.
Returns. The empty recipe.
Ingredient(string)¶
One of this recipe's ingredients by id.
Parameters
id(string) - The ingredient id.
Returns. The ingredient.
Exceptions
KeyNotFoundException- No ingredient has that id; the message names it.
TryIngredient(string, LoadedIngredient?)¶
One of this recipe's ingredients by id, if it has one.
Parameters
id(string) - The ingredient id.ingredient(LoadedIngredient?) - The ingredient, or null.
Returns. Whether found.