<?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%2FMacroRegistry</id>
	<title>Dice/MacroRegistry - 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%2FMacroRegistry"/>
	<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/MacroRegistry&amp;action=history"/>
	<updated>2026-05-03T01:06:46Z</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/MacroRegistry&amp;diff=917&amp;oldid=prev</id>
		<title>Skizzerz: Created page with &quot;{{APIdoc|MacroRegistry Class}} Stores a mapping of all macros to their appropriate callbacks.  {{ns}}  == Inheritance Hierarchy == System.Object : Dice.MacroRegistry  == Synta...&quot;</title>
		<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/MacroRegistry&amp;diff=917&amp;oldid=prev"/>
		<updated>2017-08-15T17:42:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{APIdoc|MacroRegistry Class}} Stores a mapping of all macros to their appropriate callbacks.  {{ns}}  == Inheritance Hierarchy == System.Object : Dice.MacroRegistry  == Synta...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{APIdoc|MacroRegistry Class}}&lt;br /&gt;
Stores a mapping of all macros to their appropriate callbacks.&lt;br /&gt;
&lt;br /&gt;
{{ns}}&lt;br /&gt;
&lt;br /&gt;
== Inheritance Hierarchy ==&lt;br /&gt;
System.Object&lt;br /&gt;
: Dice.MacroRegistry&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 MacroRegistry&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)]] || Checks if the given macro has already been registered.&lt;br /&gt;
|-&lt;br /&gt;
| {{internal}} {{method}} || [[/Get|Get(String)]] || Retrieves the registration information for the given registered macro.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterMacro|RegisterMacro(String, MacroCallback)]] || Registers the specified callback to the given name.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterGlobalMacro|RegisterGlobalMacro(MacroCallback)]] || Registers a callback to the global macro registry. The same callback may be registered more than once.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/Remove|Remove(String)]] || Removes the macro with the given name.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RemoveGlobal|RemoveGlobal(MacroCallback)]] ||  Removes all instances of the callback from the global macro registry.&lt;br /&gt;
|-&lt;br /&gt;
| {{public}} {{method}} || [[/RegisterType (Type)|RegisterType(Type)]] || Registers all public static methods marked with {{l|DiceMacroAttribute}} 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 {{l|DiceMacroAttribute}} 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 macros to their callback and other registration information.&lt;br /&gt;
|-&lt;br /&gt;
| {{internal}} {{field}} || [[/GlobalCallbacks|GlobalCallbacks]] || Callbacks which should be executed on every macro run.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
A MacroRegistry can contain global callbacks as well as macros registered to a particular name. Global callbacks are executed on every macro (after any name-specific callback is invoked).&lt;/div&gt;</summary>
		<author><name>Skizzerz</name></author>
		
	</entry>
</feed>