< Dice‎ | FunctionContext
Revision as of 22:42, 14 August 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.