Class BlockCatalog

Static catalog of every block type registered in BlockFactory, with display metadata and parameter hints for the GUI palette and config builder.

Inheritance
BlockCatalog
Namespace: MOSAIC.Components.Factory
Assembly: MOSAIC.dll
Syntax
public static class BlockCatalog

Fields

_none

Declaration
private static readonly ParamHint[] _none
Field Value
Type Description
ParamHint[]

Properties

All

Declaration
public static IReadOnlyList<BlockDescriptor> All { get; }
Property Value
Type Description
IReadOnlyList<BlockDescriptor>

ByKey

Declaration
public static IReadOnlyDictionary<string, BlockDescriptor> ByKey { get; }
Property Value
Type Description
IReadOnlyDictionary<string, BlockDescriptor>

CategoryByClass

Runtime class name → its palette category, for tinting graph nodes by category.

Declaration
public static IReadOnlyDictionary<string, BlockCategory> CategoryByClass { get; }
Property Value
Type Description
IReadOnlyDictionary<string, BlockCategory>

DisplayNameByClass

Runtime class name (e.g. "ClockBlock") → the block's friendly display name, so AllowableBlocks whitelists can be shown to users in readable form.

Declaration
public static IReadOnlyDictionary<string, string> DisplayNameByClass { get; }
Property Value
Type Description
IReadOnlyDictionary<string, string>

Methods

Build()

Declaration
private static BlockDescriptor[] Build()
Returns
Type Description
BlockDescriptor[]

Search documentation

Start typing to search the documentation.