Skip to content

Variant

Namespace Nfty.Core.Model in assembly Nfty.Ticket.

public record Variant

One image inside an Ingredient — the smallest unit a roll can land on. Not a file of its own: variants live inside the .igt that owns them.

Constructors

Variant(string, string, double)

public Variant(string Id, string Name, double Weight);

Parameters

  • Id (string) - Stable identifier, unique within its Ingredient. Becomes the variant's PNG entry name inside the archive, and is what the DNA records.
  • Name (string) - Display name, shown in reports and the GUI.
  • Weight (double) - Relative roll weight. Zero shelves the variant — it stays in the archive and is never rolled — and negative is rejected by Validator.

Properties

Id

public string Id { get; init; }

Stable identifier, unique within its Ingredient. Becomes the variant's PNG entry name inside the archive, and is what the DNA records.

Name

public string Name { get; init; }

Display name, shown in reports and the GUI.

Weight

public double Weight { get; init; }

Relative roll weight. Zero shelves the variant — it stays in the archive and is never rolled — and negative is rejected by Validator.