InternalContext Class

From DiceRoller Documentation

Opaque contextual information used when evaluating dice expressions.

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

Inheritance Hierarchy

System.Object

Dice.InternalContext

Syntax

internal class InternalContext

Methods

Name Description
AddGroupExpression(DiceAST) Add a new group expression to the context, returning an identifier string suitable for DieResult.Data.
GetGroupExpression(String) Retrieves the expression given an identifier string.

Fields

Name Description
AllRolls Stores all dice rolled.
AllMacros Stores all macro values.
GroupExpressions Stores all expressions that underpin a Group die result.

Remarks

This context is filled in during AST evaluation, each node adds to the context during its evaluation process.