Skip to content

SetItem

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

public record SetItem

One asset in a Set already on disk.

Constructors

SetItem(int, string, string, string, IReadOnlyList<RarityAttribute>, IReadOnlyList<LayerColor>, IReadOnlyList<string>?)

public SetItem(int Number, string ImagePath, string Dna, string Recipe, IReadOnlyList<RarityAttribute> Rarity, IReadOnlyList<LayerColor> Layers, IReadOnlyList<string>? AbsentLayers = null);

Parameters

  • Number (int) - Its set number.
  • ImagePath (string) - Path to its PNG. A path, not a decoded image, so listing a Set does not pull the whole collection into memory.
  • Dna (string) - Its identity hash.
  • Recipe (string) - The recipe it came from.
  • Rarity (IReadOnlyList<RarityAttribute>) - Its traits with collection-wide rarity.
  • Layers (IReadOnlyList<LayerColor>) - The per-layer color record.
  • AbsentLayers (IReadOnlyList<string>?) - The layers the roll left out of this asset entirely, by display name. Null for a Set written before optional layers existed, and for any collection that does not use them.

Properties

AbsentLayers

public IReadOnlyList<string>? AbsentLayers { get; init; }

The layers the roll left out of this asset entirely, by display name. Null for a Set written before optional layers existed, and for any collection that does not use them.

Dna

public string Dna { get; init; }

Its identity hash.

ImagePath

public string ImagePath { get; init; }

Path to its PNG. A path, not a decoded image, so listing a Set does not pull the whole collection into memory.

Layers

public IReadOnlyList<LayerColor> Layers { get; init; }

The per-layer color record.

Number

public int Number { get; init; }

Its set number.

Rarity

public IReadOnlyList<RarityAttribute> Rarity { get; init; }

Its traits with collection-wide rarity.

Recipe

public string Recipe { get; init; }

The recipe it came from.