< Dice | FunctionContext
Difference between revisions of "Dice/FunctionContext/Data"
From DiceRoller Documentation
(Created page with "{{APIdoc|FunctionContext.Data Property}} Gets the RollData attached to this function execution. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public RollData Data { get; pr...") |
(No difference)
|
Latest revision as of 22:42, 14 August 2017
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.