[2.0] 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:
Update to work under RunUO 2.0 RC1
Todo:
Shorter the time needed to load the commands ( ~10s because of large amount of classes and methods ).
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()
{
Commands.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 ) { ; }
...
Update to work under RunUO 2.0 RC1
Todo:
Shorter the time needed to load the commands ( ~10s because of large amount of classes and methods ).