< Dice‎ | AST‎ | DiceAST
Revision as of 19:25, 16 May 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DiceAST.Values Property

From DiceRoller Documentation

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.