<?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%2FRegisterGlobalMacro</id>
	<title>Dice/MacroRegistry/RegisterGlobalMacro - 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%2FRegisterGlobalMacro"/>
	<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/MacroRegistry/RegisterGlobalMacro&amp;action=history"/>
	<updated>2026-05-03T05:28:41Z</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/RegisterGlobalMacro&amp;diff=925&amp;oldid=prev</id>
		<title>Skizzerz: Created page with &quot;{{APIdoc|MacroRegistry.RegisterGlobalMacro Method (MacroCallback)}} Registers a callback to the global macro registry. The same callback may be registered more than once.  {{n...&quot;</title>
		<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/MacroRegistry/RegisterGlobalMacro&amp;diff=925&amp;oldid=prev"/>
		<updated>2017-09-15T19:27:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{APIdoc|MacroRegistry.RegisterGlobalMacro Method (MacroCallback)}} Registers a callback to the global macro registry. The same callback may be registered more than once.  {{n...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{APIdoc|MacroRegistry.RegisterGlobalMacro Method (MacroCallback)}}&lt;br /&gt;
Registers a callback to the global macro registry. The same callback may be registered more than once.&lt;br /&gt;
&lt;br /&gt;
{{ns}}&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 void RegisterGlobalMacro(&lt;br /&gt;
    MacroCallback callback&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
; ''callback''&lt;br /&gt;
: Type: {{l|Dice.MacroCallback}}&lt;br /&gt;
: The method to be called whenever the macro is called in a dice expression.&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
This registers a new global callback macro. The same callback can be registered multiple times; it is called as many times as it is registered. For example, registering a callback twice means that it will be called twice on each macro. The [[../RemoveGlobal|RemoveGlobal]] method can unregister all instances of a callback. Global macros are executed on each macro request, after all name-specific callbacks have fired. The exact order of evaluation is as follows:&lt;br /&gt;
# Name-specific macro callback on the RollData&lt;br /&gt;
# Name-specific macro callback on the RollerConfig (only if no name-specific RollData macros existed)&lt;br /&gt;
# Global callbacks on the RollData&lt;br /&gt;
# Global callbacks on the RollerConfig&lt;/div&gt;</summary>
		<author><name>Skizzerz</name></author>
		
	</entry>
</feed>