Difference between revisions of "Dice/Roller/Roll"
From DiceRoller Documentation
Line 11: | Line 11: | ||
! Name !! Description | ! Name !! Description | ||
|- | |- | ||
− | | {{public}} {{static}} {{method}} || [[ | + | | {{public}} {{static}} {{method}} || [[../Roll (String)|Roll(String)]] || Rolls dice according to the string expression, using the default configuration. |
|- | |- | ||
− | | {{public}} {{static}} {{method}} || [[ | + | | {{public}} {{static}} {{method}} || [[../Roll (String, RollerConfig)|Roll(String, RollerConfig)]] || Rolls dice according to the string expression and configuration. |
+ | |- | ||
+ | || {{internal}} {{static}} {{method}} || [[../Roll (DiceAST, RollerConfig)|Roll(DiceAST, RollerConfig)]] || Evaluates the root of the tree, returning the RollResult. | ||
|} | |} | ||
== Remarks == | == Remarks == | ||
{{cs|null}} can be passed as RollerConfig for the second overload. This is equivalent to calling the first overload instead. | {{cs|null}} can be passed as RollerConfig for the second overload. This is equivalent to calling the first overload instead. |
Revision as of 18:53, 20 April 2017
Rolls dice according to the string expression.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Overloads
Name | Description | |
---|---|---|
S | Roll(String) | Rolls dice according to the string expression, using the default configuration. |
S | Roll(String, RollerConfig) | Rolls dice according to the string expression and configuration. |
S | Roll(DiceAST, RollerConfig) | Evaluates the root of the tree, returning the RollResult. |
Remarks
null
can be passed as RollerConfig for the second overload. This is equivalent to calling the first overload instead.