@dice-roller/rpg-dice-roller / RollOptions
Interface: RollOptions<T>
Defined in: src/RollSettings.ts:22
How notation is parsed, rolled and presented. Every option is optional.
Type Parameters
T
T = string
the output type of the presenter
Properties
dice?
optionaldice?:DieRegistry
Defined in: src/RollSettings.ts:26
Default: new DieRegistry() (the built-in dice).
engine?
optionalengine?:RandomEngine
Defined in: src/RollSettings.ts:24
The source of randomness (default nativeMath).
limits?
optionallimits?:Partial<RollLimits>
Defined in: src/RollSettings.ts:30
Safety limits: default maxQty 999 and maxIterations 1000; each must be a positive safe integer.
modifiers?
optionalmodifiers?:ModifierRegistry
Defined in: src/RollSettings.ts:28
Default: new ModifierRegistry() (the built-in modifiers).
presenter?
optionalpresenter?:Presenter<T>
Defined in: src/RollSettings.ts:32
Used by Roll.present() and Roller.present() (default: the default TextPresenter).