Difference between revisions of "Dice/MacroContext/Data"

From DiceRoller Documentation
(Created page with "{{APIdoc|MacroContext.Data Property}} Gets the RollData attached to this macro execution. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public RollData Data { get; private...")
 
(No difference)

Latest revision as of 23:13, 14 August 2017

Gets the RollData attached to this macro 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 macro 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 macro 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.