C# Class WF.Compiler.Compiler

显示文件 Open project: WFoundation/WF.Compiler Class Usage Examples

Public Methods

Method Description
CreateEngine ( DeviceType device ) : IEngine
Download ( Stream ifs, DeviceType device = DeviceType.Emulator, string userName = "WF.Compiler", string completitionCode = "1234567890ABCDE" ) : MemoryStream

Compiler entry for online compilation.

Download ( string fileInput, DeviceType device = DeviceType.Emulator, string userName = "WF.Compiler", string completitionCode = "1234567890ABCDE" ) : MemoryStream

Compiler entry for online compilation.

Main ( string args ) : void

The entry point of the program, where the program control starts and ends when used from command line.

Upload ( Stream ifs ) : void

Checke the stream fileInput, if it is a valid GWZ file and the Lua code has no errors.

Upload ( string fileInput ) : void

Checke the file with name fileInput, if it is a valid GWZ file and the Lua code has no errors.

Private Methods

Method Description
Usage ( ) : void

Usage of programm when called from command line.

Method Details

CreateEngine() public static method

public static CreateEngine ( DeviceType device ) : IEngine
device DeviceType
return IEngine

Download() public static method

Compiler entry for online compilation.
public static Download ( Stream ifs, DeviceType device = DeviceType.Emulator, string userName = "WF.Compiler", string completitionCode = "1234567890ABCDE" ) : MemoryStream
ifs Stream Stream of the input file.
device DeviceType Device.
userName string User name.
completitionCode string Completition code.
return System.IO.MemoryStream

Download() public static method

Compiler entry for online compilation.
public static Download ( string fileInput, DeviceType device = DeviceType.Emulator, string userName = "WF.Compiler", string completitionCode = "1234567890ABCDE" ) : MemoryStream
fileInput string File name of the input file.
device DeviceType Device.
userName string User name.
completitionCode string Completition code.
return System.IO.MemoryStream

Main() public static method

The entry point of the program, where the program control starts and ends when used from command line.
public static Main ( string args ) : void
args string The command line arguments.
return void

Upload() public static method

Checke the stream fileInput, if it is a valid GWZ file and the Lua code has no errors.
public static Upload ( Stream ifs ) : void
ifs Stream
return void

Upload() public static method

Checke the file with name fileInput, if it is a valid GWZ file and the Lua code has no errors.
public static Upload ( string fileInput ) : void
fileInput string File name for input.
return void