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...")
 
 
Line 9: Line 9:
 
! Name !! Description
 
! Name !! Description
 
|-
 
|-
| {{public}} {{method}} || [[/RegisterFunction (String, FunctionCallback)|RegisterFunction(String, FunctionCallback)]] || Registers the specified global callback to the given name.
+
| {{public}} {{method}} || [[../RegisterFunction (String, FunctionCallback)|RegisterFunction(String, FunctionCallback)]] || Registers the specified global callback to the given name.
 
|-
 
|-
| {{public}} {{method}} || [[/RegisterFunction (String, FunctionCallback, FunctionScope)|RegisterFunction(String, FunctionCallback, FunctionScope)]] || Registers the specified callback to the given name and scope.
+
| {{public}} {{method}} || [[../RegisterFunction (String, FunctionCallback, FunctionScope)|RegisterFunction(String, FunctionCallback, FunctionScope)]] || Registers the specified callback to the given name and scope.
 
|-
 
|-
| {{public}} {{method}} || [[/RegisterFunction (String, FunctionCallback, FunctionScope, FunctionTiming)|RegisterFunction(String, FunctionCallback, FunctionScope, FunctionTiming)]] || Registers the specified callback to the given name, scope, and timing.
+
| {{public}} {{method}} || [[../RegisterFunction (String, FunctionCallback, FunctionScope, FunctionTiming)|RegisterFunction(String, FunctionCallback, FunctionScope, FunctionTiming)]] || Registers the specified callback to the given name, scope, and timing.
 
|}
 
|}
  
 
== Remarks ==
 
== Remarks ==
 
The first overload is equivalent to calling {{cs|RegisterFunction(name, callback, FunctionScope.Global, FunctionTiming.Last)}} and the second overload is equivalent to calling {{cs|RegisterFunction(name, callback, scope, FunctionTiming.Last)}}.
 
The first overload is equivalent to calling {{cs|RegisterFunction(name, callback, FunctionScope.Global, FunctionTiming.Last)}} and the second overload is equivalent to calling {{cs|RegisterFunction(name, callback, scope, FunctionTiming.Last)}}.

Latest revision as of 18:14, 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).