< Dice‎ | RollerConfig
Revision as of 18:14, 10 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollerConfig.MaxDice Property}} Gets or sets the maximum number of dice that may be rolled. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public uint MaxDice { ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollerConfig.MaxDice Property

From DiceRoller Documentation

Gets or sets the maximum number of dice that may be rolled.

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

Syntax

public uint MaxDice { get; set; }

Property Value

Type: System.UInt32

The maximum number of dice that may be rolled, including dice rolled due to rerolls or exploding dice. Exceeding this limit will result in a DiceException being thrown with DiceErrorCode.TooManyDice.

Remarks

The default value for MaxDice is 1,000. It is recommended to not set this too high, as there is generally no need to roll hundreds or thousands of dice in the course of typical role-playing games, and increasing this limit will adversely impact both memory usage as well as the time taken to process dice rolls.