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.