< Dice
Revision as of 21:22, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|BuiltinFunctions Class}} Contains callbacks for all built-in functions. {{ns}} == Inheritance Hierarchy == System.Object : Dice.BuiltinFunctions == Syntax == <synt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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.