Difference between revisions of "Dice/DieResult/SuccessCount"

From DiceRoller Documentation
(Created page with "{{APIdoc|DieResult.SuccessCount Property}} Gets 1 if the die is a success, -1 if the die is a failure, and 0 otherwise. {{ns}} == Syntax == <syntaxhighlight lang="C#"> publi...")
 
(No difference)

Latest revision as of 18:11, 25 April 2017

Gets 1 if the die is a success, -1 if the die is a failure, and 0 otherwise.

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

Syntax

public int SuccessCount { get; }

Property Value

Type: System.Int32

1 if the die is a success, -1 if the die is a failure, and 0 otherwise.

Remarks

The value of this is determined by what Flags the DieResult has. Updating Flags will automatically update this value.