< Dice‎ | DieResult
Revision as of 18:11, 25 April 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult.SuccessCount Property

From DiceRoller Documentation

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.