Difference between revisions of "Dice/DieResult/NumSides"

From DiceRoller Documentation
(Created page with "{{APIdoc|DieResult.NumSides Field}} If the DieResult represents a die roll, this is the number of sides that die had. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public...")
 
Line 15: Line 15:
  
 
== Remarks ==
 
== Remarks ==
If the die did not represent a roll, this will be 0. For fudge dice, this is the maximum value rolled (so 1dF would have NumSides of 1, even though there are 3 possible results).
+
If the die did not represent a roll, this will be 0. For fudge dice, this is the maximum possible value rolled (so 1dF would have NumSides of 1, even though there are 3 possible results).

Revision as of 16:58, 12 April 2017

If the DieResult represents a die roll, this is the number of sides that die had.

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

Syntax

public uint Numsides

Field Value

Type: System.UInt32

How many sides the die had.

Remarks

If the die did not represent a roll, this will be 0. For fudge dice, this is the maximum possible value rolled (so 1dF would have NumSides of 1, even though there are 3 possible results).