Skip to content

PartialAlphaBookException

Namespace Nfty.Model in assembly Nfty.Model.

public sealed class PartialAlphaBookException : InvalidOperationException

A CookBook with a partly transparent variant cannot be cooked into models: every asset's picture would be refused one by one. Refused up front, once, naming the variants.

Constructors

PartialAlphaBookException(string, IReadOnlyList<VoxelVariant>)

public PartialAlphaBookException(string bookName, IReadOnlyList<VoxelVariant> variants);

Creates the exception.

Parameters

  • bookName (string) - The CookBook's name.
  • variants (IReadOnlyList<VoxelVariant>) - The variants with partly transparent pixels.

Properties

BookName

public string BookName { get; }

The CookBook's name.

Variants

public IReadOnlyList<VoxelVariant> Variants { get; }

The offending variants.