C# Class AlbLib.Scripting.Scripts

Core scripting class.
Mostra file Open project: IllidanS4/AlbLib

Public Methods

Method Description
GetScript ( int index ) : string

Returns script text.

RunScript ( int index, ExecuteHandler handler ) : bool

Executes script.

RunScript ( int index, IScriptExecutor executor ) : bool

Executes script.

RunScript ( string script, ExecuteHandler handler ) : bool

Executes script.

RunScript ( string script, IScriptExecutor executor ) : bool

Executes script.

Method Details

GetScript() public static method

Returns script text.
public static GetScript ( int index ) : string
index int /// Zero-based script index. ///
return string

RunScript() public static method

Executes script.
public static RunScript ( int index, ExecuteHandler handler ) : bool
index int /// The script index to execute. ///
handler ExecuteHandler /// Delegate which is called. ///
return bool

RunScript() public static method

Executes script.
public static RunScript ( int index, IScriptExecutor executor ) : bool
index int /// The script index to execute. ///
executor IScriptExecutor /// Virtual machine which executes the script. ///
return bool

RunScript() public static method

Executes script.
public static RunScript ( string script, ExecuteHandler handler ) : bool
script string /// The script text to execute. ///
handler ExecuteHandler /// Delegate which is called. ///
return bool

RunScript() public static method

Executes script.
public static RunScript ( string script, IScriptExecutor executor ) : bool
script string /// The script text to execute. ///
executor IScriptExecutor /// Virtual machine which executes the script. ///
return bool