GeneratedSet¶
Namespace Nfty.Core.Generation in assembly Nfty.Core.
A whole generated collection, held in memory. Disposing it disposes every asset image, so using var set = Generator.Generate(...) is the safe default. A caller that cannot afford the whole set at once should use Generator.GenerateStreaming() instead and dispose each asset as it lands.
Constructors¶
GeneratedSet(string, string, string, string, IReadOnlyList<GeneratedAsset>, string?, bool)¶
public GeneratedSet(string CollectionName, string Description, string Symbol, string Seed, IReadOnlyList<GeneratedAsset> Assets, string? CookbookSha256 = null, bool UniqueDna = true);
Parameters
CollectionName(string) - The collection's published name.Description(string) - The collection's description.Symbol(string) - The collection's ticker-style symbol.Seed(string) - The seed that produced the run.Assets(IReadOnlyList<GeneratedAsset>) - The finished assets, in set-number order. Owned by this set.CookbookSha256(string?) - Hash of the source.cbk; null for a book never read from a file.UniqueDna(bool) - Whether the run enforced distinct DNA.
Properties¶
Assets¶
The finished assets, in set-number order. Owned by this set.
CollectionName¶
The collection's published name.
CookbookSha256¶
Hash of the source .cbk; null for a book never read from a file.
Description¶
The collection's description.
Seed¶
The seed that produced the run.
Symbol¶
The collection's ticker-style symbol.
UniqueDna¶
Whether the run enforced distinct DNA.
Methods¶
Dispose()¶
Frees every asset image in the set.