< Dice
Revision as of 16:53, 12 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DieResult Structure}} Contains the result of an individual die roll. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public struct DieResult </syntaxhighlight> ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult Structure

From DiceRoller Documentation

Contains the result of an individual die roll.

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

Syntax

public struct DieResult

Fields

Name Description
DieType What type of die was rolled.
Flags Any special flags giving more information about the roll.
NumSides How many sides the die had.
Value What the result of the roll was.

Remarks

The NumSides field is only non-zero if DieType is DieType.Normal or DieType.Fudge. If DieType is DieType.Special, then Value can be cast into a SpecialDie enum value.