Class BlockDescriptor
One registered block type, with the display metadata and parameter hints the GUI needs.
Inheritance
BlockDescriptor
Assembly: MOSAIC.dll
Syntax
public sealed record BlockDescriptor : IEquatable<BlockDescriptor>
Constructors
BlockDescriptor(string, Type, string, BlockCategory, string, IReadOnlyList<ParamHint>)
One registered block type, with the display metadata and parameter hints the GUI needs.
Declaration
public BlockDescriptor(string TypeKey, Type BlockType, string DisplayName, BlockCategory Category, string Description, IReadOnlyList<ParamHint> Params)
Parameters
Properties
BlockType
Declaration
public Type BlockType { get; init; }
Property Value
CanBeSource
Whether the block needs no inputs and can originate a stream. Derived from the block class
via BlockConstraints (reflection) — never hand-set, so it can't drift.
Declaration
public bool CanBeSource { get; }
Property Value
Category
Declaration
public BlockCategory Category { get; init; }
Property Value
Description
Declaration
public string Description { get; init; }
Property Value
DisplayName
Declaration
public string DisplayName { get; init; }
Property Value
Params
Declaration
public IReadOnlyList<ParamHint> Params { get; init; }
Property Value
TypeKey
Declaration
public string TypeKey { get; init; }
Property Value
Implements