Difference between revisions of "Dice/RollResult/RollResult (RollerConfig, DiceAST, Int32)"

From DiceRoller Documentation
(Created page with "{{APIdoc|RollResult Constructor (ResultType, decimal, IReadOnlyList<DieResult>, DiceAST)}} Constructs a new instance of RollResult. {{ns}} == Syntax == <syntaxhighlight lang...")
(No difference)

Revision as of 19:31, 10 April 2017

Constructs a new instance of RollResult.

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

Syntax

internal RollResult(
    ResultType resultType,
    decimal value,
    IReadOnlyList<DieResult> values,
    DiceAST rollRoot
)

Parameters

resultType
Type: Dice.ResultType
The type of this RollResult.
value
Type: System.Decimal
The overall value of the roll.
values
Type: System.Collections.Generic.IReadOnlyList<Dice.DieResult>
The individual results of each die rolled.
rollRoot
Type: Dice.AST.DiceAST
The root of the dice expression's AST.

Exceptions

Exception Condition
ArgumentNullException values or rollRoot is null.