< Dice‎ | PbP‎ | RollPost
Revision as of 18:58, 28 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollPost.PostMacros Method (MacroContext)}} Executes PbP-specific macros, which are documented on in the dice reference. {{ns}} == Syntax == <syn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollPost.PostMacros Method (MacroContext)

From DiceRoller Documentation

Executes PbP-specific macros, which are documented on in the dice reference.

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

Syntax

private void PostMacros(
    MacroContext context
)

Parameters

context
Type: Dice.MacroContext
Macro context

Remarks

This callback is added to the RollerConfig.ExecuteMacro chain whenever a dice expression needs to be evaluated as part of AddRoll(). It is removed from the chain after the expression has been evaluated, so that future rolls using normal Roller.Roll() do not make use of the PbP-specific macros.

When called, it calls one of the PbP-specific macro functions based on the text before the first colon in the macro param, case insensitive.