< Dice‎ | InternalContext
Revision as of 20:10, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|InternalContext.GroupExpressions Field}} Stores all expressions that underpin a Group die result. {{ns}} == Syntax == <syntaxhighlight lang="C#"> internal List<Dice...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

InternalContext.GroupExpressions Field

From DiceRoller Documentation

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.