Difference between revisions of "Dice/RollData/MacroRegistry"
From DiceRoller Documentation
(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...") |
(No difference)
|
Latest revision as of 22:21, 15 September 2017
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.