< Dice
Revision as of 20:01, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|InternalContext Class}} Opaque contextual information used when evaluating dice expressions. {{ns}} == Inheritance Hierarchy == System.Object : Dice.InternalContext...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.