< Dice | FunctionContext
FunctionContext.Data Property
From DiceRoller Documentation
Gets the RollData attached to this function execution.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public RollData Data { get; private set; }
Property Value
Type: Dice.RollData
The RollData containing information about this function execution. It is never null.
Remarks
This exposes the metadata object passed into Roller.Roll, allowing you to use that metadata to modify how the function executes if desired. The per-roll FunctionRegistry and MacroRegistry can be manipulated as well in the event you wish to add or remove macros or functions on the fly.