Skip to content

SpriteSheetProgress

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public record SpriteSheetProgress

How far a sheet has got.

Constructors

SpriteSheetProgress(int, int, string)

public SpriteSheetProgress(int Placed, int Total, string Phase);

Parameters

  • Placed (int) - Assets drawn onto the sheet so far.
  • Total (int) - Assets in the Set.
  • Phase (string) - What is happening, for a label.

Properties

Fraction

public double Fraction { get; }

Progress as a 0..1 fraction. Zero when there is nothing to do.

Phase

public string Phase { get; init; }

What is happening, for a label.

Placed

public int Placed { get; init; }

Assets drawn onto the sheet so far.

Total

public int Total { get; init; }

Assets in the Set.