< Dice‎ | RollData

RollData.FunctionRegistry Property

From DiceRoller Documentation

Gets or sets functions specific to this roll. If these have the same name as a global function, this is executed instead. Cannot be null.

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

Syntax

public FunctionRegistry FunctionRegistry { get; set; }

Property Value

Type: Dice.FunctionRegistry

Registry containing functions specific to this roll.

Remarks

This registry can be used to "shadow" global functions by adding roll-specific overrides of them. For example, one could add a new max() function which behaved differently from the global max(). If a function is in this registry, it is called instead of the global version. Like the global registry, reserved functions (those built into the roller, such as dropLowest) cannot be registered.