< Dice
Revision as of 19:12, 10 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollResult Class}} Contains the result of a roll expression. {{ns}} == Inheritance Hierarchy == System.Object :Dice.RollResult == Syntax == <syntaxhighlight lang="...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollResult Class

From DiceRoller Documentation

Contains the result of a roll expression.

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

Inheritance Hierarchy

System.Object

Dice.RollResult

Syntax

public class RollResult

Constructors

Name Description
RollResult(ResultType, decimal, IReadOnlyList<DieResult>, DiceAST) Constructs a new instance of RollResult.

Properties

Name Description
ResultType Gets whether or not Value represents the die total or the number of successes.
RollRoot Gets the root of the dice expression's abstract syntax tree.
Value Gets the result of the roll.
Values Gets the results of each individual die rolled.

Remarks

RollResults are returned from the Roller.Roll method, and can be used to obtain the results of the roll. This class is read-only. Typically, Value and Values are the only properties that are needed in the course of normal operations, however the full AST is exposed for advanced insight into the roll, should such be necessary.