< Dice‎ | AST‎ | DiceAST

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

From DiceRoller Documentation
(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...")
 
(No difference)

Latest revision as of 19:27, 16 May 2017

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.