Difference between revisions of "Dice/RollerConfig/FunctionRegistry"

From DiceRoller Documentation
(Created page with "{{APIdoc|RollerConfig.FunctionRegistry Property}} Gets or sets the registry of all valid function names and their callbacks. {{ns}} == Syntax == <syntaxhighlight lang="C#">...")
 
(No difference)

Latest revision as of 19:33, 24 April 2017

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.