C# Class ALFA.ScriptCompiler

This class encapsulates general system information about the game environment and configuration.
Show file Open project: ALandFarAway/ALFA-Base-Resources

Public Methods

Method Description
CompileScript ( string Filespec, string Options, CompilerParseLineDelegate ParseLine = null ) : CompilerResult

Compile a script (or set of scripts), and return information about the compilation request.

Private Methods

Method Description
CreateCompilerCommandLine ( string Filespec, string Options ) : string

Create the command line for the compiler given a filespec to attempt to compile.

GetCompilerExe ( ) : string

Get the path to NWNScriptCompiler.exe.

Method Details

CompileScript() public static method

Compile a script (or set of scripts), and return information about the compilation request.
public static CompileScript ( string Filespec, string Options, CompilerParseLineDelegate ParseLine = null ) : CompilerResult
Filespec string Supplies a filespec of files to compile, /// such as *.nss.
Options string Optionally supplies additional compiler /// options (e.g. -e -v1.70).
ParseLine CompilerParseLineDelegate Optionally supplies a function to parse /// each line printed by the compiler.
return CompilerResult