Skip to content

RecipeCount

Namespace Nfty.Core.Output in assembly Nfty.Core.

public record RecipeCount

How many assets one recipe produced.

Constructors

RecipeCount(string, int, double)

public RecipeCount(string Recipe, int Count, double Percent);

Parameters

  • Recipe (string) - The recipe's id — what --recipe takes, and what the distribution array in set.json has always held. This said "display name" for a long time and no reader was in a position to notice: nothing rendered the field until SetReport did, and the writer takes it from GeneratedAsset.RecipeId. The doc is what was wrong, not the data — the array is sorted by this value with an ordinal comparer to keep set.json byte-identical across machines, and Sets carrying ids are out in the world.
  • Count (int) - How many assets it produced.
  • Percent (double) - Its share of the collection.

Properties

Count

public int Count { get; init; }

How many assets it produced.

Percent

public double Percent { get; init; }

Its share of the collection.

Recipe

public string Recipe { get; init; }

The recipe's id — what --recipe takes, and what the distribution array in set.json has always held. This said "display name" for a long time and no reader was in a position to notice: nothing rendered the field until SetReport did, and the writer takes it from GeneratedAsset.RecipeId. The doc is what was wrong, not the data — the array is sorted by this value with an ordinal comparer to keep set.json byte-identical across machines, and Sets carrying ids are out in the world.