< Dice‎ | FunctionRegistry
Revision as of 18:11, 20 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|FunctionRegistry.RegisterFunction Method Overloads}} Registers a new callback to the specified name. {{ns}} == Overloads == {| class="wikitable" ! style="width: 5em...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FunctionRegistry.RegisterFunction Method Overloads

From DiceRoller Documentation

Registers a new callback to the specified name.

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

Overloads

Name Description
RegisterFunction(String, FunctionCallback) Registers the specified global callback to the given name.
RegisterFunction(String, FunctionCallback, FunctionScope) Registers the specified callback to the given name and scope.
RegisterFunction(String, FunctionCallback, FunctionScope, FunctionTiming) Registers the specified callback to the given name, scope, and timing.

Remarks

The first overload is equivalent to calling RegisterFunction(name, callback, FunctionScope.Global, FunctionTiming.Last) and the second overload is equivalent to calling RegisterFunction(name, callback, scope, FunctionTiming.Last).