C# Class WF.Compiler.GWC

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

Public Methods

Method Description
Create ( Cartridge cartridge, string username, long userId, string completionCode ) : MemoryStream
WriteToMediaTable ( BinaryWriter output, short position ) : void

Save actual position to media table.

Private Methods

Method Description
GetAscii ( string value ) : byte[]

Get string value as byte array with a zero as end.

GetDouble ( double value ) : byte[]

Get value as byte array in little endian order.

GetInt ( Int32 value ) : byte[]

Get value as byte array in little endian order.

GetLong ( System.Int64 value ) : byte[]

Get value as byte array in little endian order.

GetShort ( Int16 value ) : byte[]

Get value as byte array in little endian order.

saveLuaCode ( string text ) : void

Method Details

Create() public method

public Create ( Cartridge cartridge, string username, long userId, string completionCode ) : MemoryStream
cartridge Cartridge
username string
userId long
completionCode string
return System.IO.MemoryStream

WriteToMediaTable() public method

Save actual position to media table.
public WriteToMediaTable ( BinaryWriter output, short position ) : void
output System.IO.BinaryWriter BinaryWrite to write to.
position short Position of the media, which should be updated (Lua binary is ever 0).
return void