Difference between revisions of "Dice/FunctionRegistry/RegisterFunction"

From DiceRoller Documentation
(Created page with "{{APIdoc|FunctionRegistry.RegisterFunction Method Overloads}} Registers a new callback to the specified name. {{ns}} == Overloads == {| class="wikitable" ! style="width: 5em...")
(No difference)

Revision as of 18:11, 20 April 2017

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