< Dice‎ | RollResult
Revision as of 19:31, 10 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollResult Constructor (ResultType, decimal, IReadOnlyList<DieResult>, DiceAST)}} Constructs a new instance of RollResult. {{ns}} == Syntax == <syntaxhighlight lang...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollResult Constructor (ResultType, decimal, IReadOnlyList<DieResult>, DiceAST)

From DiceRoller Documentation

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.