< Dice‎ | AST‎ | DiceAST
Revision as of 19:27, 16 May 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DiceAST.ValueType Property}} Gets what type of value we have (total or successes). {{ns}} == Syntax == <syntaxhighlight lang="C#"> public ResultType ValueType { get...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DiceAST.ValueType Property

From DiceRoller Documentation

Gets what type of value we have (total or successes).

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

Syntax

public ResultType ValueType { get; protected set; }

Property Value

Type: Dice.ResultType

The type of value we have (total or successes).

Remarks

This is initialized to ResultType.Total by default. A node can override this to ResultType.Success if need be. It is recommended to only set ValueType to ResultType.Success if every rolled die is a success die. In other words, if some dice are reporting totals and others are reporting successes, the ValueType should be left as ResultType.Total.