Skip to content

LoadedIngredient

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

public class LoadedIngredient : IDisposable

An ingredient manifest paired with its eagerly-decoded variant images. **Owns those images**: dispose it (or the recipe/cookbook above it) to free them.

Constructors

LoadedIngredient()

public LoadedIngredient();

Properties

Depths

public IReadOnlyDictionary<string, DepthMap> Depths { get; init; }

Per-pixel front/back depth maps, keyed by variant id. A variant with no entry here is flat — "paper" — for the Rise feature. Never as large as LoadedIngredient.VariantImages: most variants carry no depth data at all.

Manifest

public required IngredientManifest Manifest { get; init; }

The ingredient's manifest.

VariantImages

public required IReadOnlyDictionary<string, Image<Rgba32>> VariantImages { get; init; }

Decoded variant images by variant id. Owned by this object.

Methods

Dispose()

public void Dispose();

Frees every image this object owns. Reading an archive eagerly decodes them all, so this is how a caller gives them back.