< Dice‎ | RollResult
Revision as of 17:51, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollResult.AllMacros Field}} The value for every macro, from left-to-right according to the normalized Expression. {{ns}} == Syntax == <syntaxhigh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollResult.AllMacros Field

From DiceRoller Documentation

The value for every macro, from left-to-right according to the normalized Expression.

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

Syntax

private IReadOnlyList<decimal> AllMacros

Field Value

Type: System.Collections.Generic.IReadOnlyList<System.Decimal>

The value for every macro, from left-to-right according to the normalized Expression.

Remarks

By taking Expression, AllRolls, and AllMacros, it is possible to reconstruct the full DiceAST and arrive at exactly the same result. In the event access to RollRoot is needed after a RollResult is deserialized, this is how RollRoot should be created.