<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://skizzerz.net/DiceRoller/index.php?action=history&amp;feed=atom&amp;title=Dice%2FFunctionRegistry</id>
	<title>Dice/FunctionRegistry - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://skizzerz.net/DiceRoller/index.php?action=history&amp;feed=atom&amp;title=Dice%2FFunctionRegistry"/>
	<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionRegistry&amp;action=history"/>
	<updated>2026-05-03T02:35:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionRegistry&amp;diff=661&amp;oldid=prev</id>
		<title>Skizzerz: Created page with &quot;{{APIdoc|FunctionRegistry Class}} Stores a mapping of all functions to their appropriate callbacks. Functions registered here can specify when they should be executed in relat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/FunctionRegistry&amp;diff=661&amp;oldid=prev"/>
		<updated>2017-04-20T18:08:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{APIdoc|FunctionRegistry Class}} Stores a mapping of all functions to their appropriate callbacks. Functions registered here can specify when they should be executed in relat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{APIdoc|FunctionRegistry Class}}&lt;br /&gt;
Stores a mapping of all functions to their appropriate callbacks. Functions registered here can specify when they should be executed in relation to built-in dice expressions.&lt;br /&gt;
&lt;br /&gt;
{{ns}}&lt;br /&gt;
&lt;br /&gt;
== Inheritance Hierarchy ==&lt;br /&gt;
System.Object&lt;br /&gt;
: Dice.FunctionRegistry&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt;&lt;br /&gt;
public class FunctionRegistry&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 5em&amp;quot; |&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| {{internal}} {{method}} || [[/Contains|Contains(String, FunctionScope, Boolean)]] || Checks if the given function has already been registered.&lt;br /&gt;
|-&lt;br /&gt;
| {{internal}} {{method}} || [[/Get|Get(String, FunctionScope)]] || Retrieves the registration information for the given registered function.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterFunction (String, FunctionCallback)|RegisterFunction(String, FunctionCallback)]] || Registers the specified global callback to the given name.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterFunction (String, FunctionCallback, FunctionScope)|RegisterFunction(String, FunctionCallback, FunctionScope)]] || Registers the specified callback to the given name and scope.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterFunction (String, FunctionCallback, FunctionScope, FunctionTiming)|RegisterFunction(String, FunctionCallback, FunctionScope, FunctionTiming)]] || Registers the specified callback to the given name, scope, and timing.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/Remove|Remove(String, FunctionScope)]] || Removes the function with the given name and scope.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterType (Type)|RegisterType(Type)]] || Registers all public static methods marked with [[Dice/DiceFunctionAttribute|DiceFunctionAttribute]] on the type.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterType (T)(T)|RegisterType&amp;lt;T&amp;gt;(T)]] || Registers all public static and instance methods marked with the [[Dice/DiceFunctionAttribute|DiceFunctionAttribute]] on the type, using the passed-in object when calling instance methods.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 5em&amp;quot; |&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| {{private}} {{field}} || [[/Callbacks|Callbacks]] || Contains a mapping of all registered functions to their callback and other registration information.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
Constructing a new instance of this class will not automatically register all built-in functions (floor, ceil, round, abs, max, min, if). This will let you register your own versions of these functions, if desired. However, all reserved function names (dropLowest, reroll, success, critical, etc.) are not actually implemented as functions, and can never be registered.&lt;br /&gt;
&lt;br /&gt;
The FunctionRegistry constructed when constructing a new [[Dice/RollerConfig|RollerConfig]] ''does'' register all built-in functions. If you wish to wipe them, you can reassign the registry with your own constructed instance of this class, or you can use Remove() to remove specific functions while keeping the others.&lt;/div&gt;</summary>
		<author><name>Skizzerz</name></author>
		
	</entry>
</feed>