< Dice‎ | AST‎ | DiceAST

Difference between revisions of "Dice/AST/DiceAST/Values"

From DiceRoller Documentation
(Created page with "{{APIdoc|DiceAST.Values Property}} Gets the underlying dice that were rolled, as well as their values. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public abstract IReadO...")
 
(No difference)

Latest revision as of 19:25, 16 May 2017

Gets the underlying dice that were rolled, as well as their values.

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

Syntax

public abstract IReadOnlyList<DieResult> Values { get; }

Property Value

Type: System.Collections.Generic.IReadOnlyList<Dice.DieResult>

The underlying dice that were rolled.

Remarks

When a node is evaluated or rerolled, it should set Value to what the value of the node is, and Values to the individual die results that comprise Value. Values must be overridden in the derived class, it is recommended to store it as a List<DieResult> to allow for easier evaluation.