Interface ITerm
Interface for a term of a dice expression that can be evaluated.
Namespace: GoRogue.DiceNotation.Terms
Assembly: GoRogue.dll
Syntax
public interface ITerm
Methods
View SourceGetResult(IEnhancedRandom)
Evaluates the term and returns the result.
Declaration
int GetResult(IEnhancedRandom rng)
Parameters
Type | Name | Description |
---|---|---|
IEnhancedRandom | rng | The rng to use. |
Returns
Type | Description |
---|---|
int | The result of evaluating the term. |