Modding:Wishes: Difference between revisions

11 bytes added ,  01:15, 17 April 2020
no edit summary
(add categoory)
No edit summary
Line 2: Line 2:
Creating your own wishes requires 2.0.200.24 or greater.
Creating your own wishes requires 2.0.200.24 or greater.


To create a wish, you define a `XRL.World.Capabilities.WishHandler` attribute on a public class, you pass two parameters, a RegularExpression pattern string, and a Method Name which should take a successful Match if one is found.  Your method should return true if you handled the wish.
To create a wish, you define a <code>XRL.World.Capabilities.WishHandler</code> attribute on a public class, you pass two parameters, a RegularExpression pattern string, and a Method Name which should take a successful Match if one is found.  Your method should return true if you handled the wish.


<syntaxhighlight lang="csharp">
<syntaxhighlight lang="csharp">