Command Attribute
Summary:
This scripts gives you a new way to declare commands in RunUO.
Installation:
Drop anywhere you like within the Scripts folder.
Usage:
Currently if you want to declare a command in RunUO you have to write something like this:
With this script you can write:
Summary:
This scripts gives you a new way to declare commands in RunUO.
Installation:
Drop anywhere you like within the Scripts folder.
Usage:
Currently if you want to declare a command in RunUO you have to write something like this:
Code:
....
public static void Initialize()
{
CommandSystem.Register("MyCommand", AccessLevel.GameMaster, new CommandEventHandler( MyCommand_OnCommand ) );
}
....
public static void MyCommand_OnCommand( CommandEventArgs args ) { ; }
With this script you can write:
Code:
...
[Command( "MyCommand", AccessLevel.GameMaster )]
public static void MyCommand_OnCommand( CommandEventArgs args ) { ; }
...