Skip to content

GenerationProgress

Namespace Nfty.Core.Generation in assembly Nfty.Core.

public readonly struct GenerationProgress : IEquatable<GenerationProgress>

How far a generation run has got. GenerationProgress.Fraction suits a progress bar.

Constructors

GenerationProgress(int, int)

public GenerationProgress(int Completed, int Total);

Parameters

  • Completed (int) - Assets finished so far.
  • Total (int) - Assets the run will produce.

Properties

Completed

public int Completed { get; init; }

Assets finished so far.

Fraction

public double Fraction { get; }

Completion as 0..1, suitable for a progress bar.

Total

public int Total { get; init; }

Assets the run will produce.