BuiltinFunctions Class

From DiceRoller Documentation

Contains callbacks for all built-in functions.

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

Inheritance Hierarchy

System.Object

Dice.BuiltinFunctions

Syntax

public static class BuiltinFunctions

Methods

Name Description
S Abs(FunctionContext) Computes the absolute value of the argument.
S Ceiling(FunctionContext) Computes the ceiling of the argument.
S Expand(FunctionContext) Expands a grouped DieResult into the individual DieResults that comprise it.
S Floor(FunctionContext) Computes the floor of the argument.
S If(FunctionContext) Conditionally returns a result based on a comparison.
S Max(FunctionContext) Returns the larger of the two arguments.
S Min(FunctionContext) Returns the smaller of the two arguments.
S Round(FunctionContext) Rounds the argument.

Fields

Name Description
S ReservedNames Function names which are reserved and cannot be registered.

Remarks

These functions are automatically registered whenever constructing a new RollerConfig object, but can be removed from the function registry if desired.