< Dice | RollerConfig
Difference between revisions of "Dice/RollerConfig/MaxSides"
From DiceRoller Documentation
(Created page with "{{APIdoc|RollerConfig.MaxSides Property}} Gets or sets the maximum number of sides a single die may have. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public uint MaxSide...") |
|||
Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
<syntaxhighlight lang="C#"> | <syntaxhighlight lang="C#"> | ||
− | public | + | public int MaxSides { get; set; } |
</syntaxhighlight> | </syntaxhighlight> | ||
=== Property Value === | === Property Value === | ||
− | Type: System. | + | Type: System.Int32 |
The maximum number of sides that any individual die can have. Exceeding this limit will result in a [[Dice/DiceException|DiceException]] being thrown with DiceErrorCode.BadSides. | The maximum number of sides that any individual die can have. Exceeding this limit will result in a [[Dice/DiceException|DiceException]] being thrown with DiceErrorCode.BadSides. |
Latest revision as of 18:57, 13 April 2017
Gets or sets the maximum number of sides a single die may have.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public int MaxSides { get; set; }
Property Value
Type: System.Int32
The maximum number of sides that any individual die can have. Exceeding this limit will result in a DiceException being thrown with DiceErrorCode.BadSides.
Remarks
The default value for MaxSides is 10,000. This limit is purely arbitrary, and nothing is impacted by changing it.