Difference between revisions of "Dice/InternalContext/GroupExpressions"

From DiceRoller Documentation
(Created page with "{{APIdoc|InternalContext.GroupExpressions Field}} Stores all expressions that underpin a Group die result. {{ns}} == Syntax == <syntaxhighlight lang="C#"> internal List<Dice...")
 
(No difference)

Latest revision as of 20:10, 27 April 2017

Stores all expressions that underpin a Group die result.

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

Syntax

internal List<DiceAST> GroupExpressions

Field Value

Type: System.Collections.Generic.List<Dice.AST.DiceAST>

All expressions that underpin a Group die result at this point in the AST evaluation.

Remarks

AddGroupExpression and GetGroupExpression should be used instead of directly interacting with this field. Whenever a new DieResult of DieType.Group is added, the underlying node which created the result is added here and the key stored in that DieResult's Data. This allows a Group roll to be rerolled, despite not having direct access to the actual underlying dice which were rolled.