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.