RollerConfig.FunctionRegistry Property

From DiceRoller Documentation

Gets or sets the registry of all valid function names and their callbacks.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public FunctionRegistry FunctionRegistry { get; set; }

Property Value

Type: Dice.FunctionRegistry

The function registry containing registered function callbacks.

Remarks

RollerConfig is initialized with a function registry containing all built-in functions registered. If you want to remove or override built-in functions, you can either call Remove() on them, or you can create a new FunctionRegistry object (which does not have any built-in functions registered) and assign it to the config.