C# Class MCLawl.Scripting

显示文件 Open project: dekema2/MCDek Class Usage Examples

Public Methods

Method Description
Autoload ( ) : void
Compile ( string commandName ) : bool

Compiles a written function from source into a DLL.

CreateNew ( string CmdName ) : void

Creates a new, empty command class.

Load ( string command ) : string

Loads a command for use on the server.

Private Methods

Method Description
ClassName ( string name ) : string

Creates a class name from the given string.

Method Details

Autoload() public static method

public static Autoload ( ) : void
return void

Compile() public static method

Compiles a written function from source into a DLL.
public static Compile ( string commandName ) : bool
commandName string Name of the command file to be compiled (without the extension)
return bool

CreateNew() public static method

Creates a new, empty command class.
public static CreateNew ( string CmdName ) : void
CmdName string
return void

Load() public static method

Loads a command for use on the server.
public static Load ( string command ) : string
command string Name of the command to be loaded (make sure it's prefixed by Cmd before bringing it in here or you'll have problems).
return string