25
edits
(Created page with "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 static class: <syntaxhighl...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
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 | 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. | ||
<syntaxhighlight lang="csharp"> | <syntaxhighlight lang="csharp"> |