Difference between revisions of "Dice/AST/DiceAST/RerollInternal"
From DiceRoller Documentation
(Created page with "{{APIdoc|DiceAST.RerollInternal Method (RollerConfig, DiceAST, Int32)}} Actual reroll logic, implemented by each subclass. {{ns}} == Syntax == <syntaxhighlight lang="C#"> pr...") |
(No difference)
|
Revision as of 23:08, 15 May 2017
Actual reroll logic, implemented by each subclass.
- Namespace: Dice.AST
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
protected abstract long RerollInternal
Parameters
- conf
- Type: Dice.RollerConfig
- Configuration of the roller.
- root
- Type: Dice.AST.DiceAST
- Root of the AST.
- depth
- Type: System.Int32
- Current recursion depth.
Return Value
Type: System.Int64
Total number of rolls taken to reroll this subtree.
Remarks
Subclasses of DiceAST must implement this method. If the subclass has child nodes, it should call Reroll on any child nodes it has before executing its own logic. These calls should typically increase the depth by 1. This method must set Value, ValueType, and Values for the node.