< Dice‎ | RollData
Revision as of 22:21, 15 September 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollData.MacroRegistry Property}} Gets or sets macros specific to this roll. If these have the same name as a macro attached to the RollerConfig, this one is executed...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollData.MacroRegistry Property

From DiceRoller Documentation

Gets or sets macros specific to this roll. If these have the same name as a macro attached to the RollerConfig, this one is executed instead. Cannot be null.

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

Syntax

public MacroRegistry MacroRegistry { get; set; }

Property Value

Type: Dice.MacroRegistry

Registry containing macros specific to this roll.

Remarks

This registry can be used to "shadow" RollerConfig-level macros by adding roll-specific overrides of them. If a macro is in this registry, it is called instead of the version in RollerConfig. Global macros (those which do not have any particular name) are executed from both this registry as well as the RollerConfig on all macro executions, even if there was already a named macro callback which handled it.