C# Class WF.Compiler.EnginePocketPC

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

Public Methods

Method Description
ConvertCartridge ( Cartridge cartridge ) : Cartridge

Converts the Cartridge object in a format valid for the given engine.

- Convert Lua code - Convert strings in special format and insert any special code - Convert medias

ConvertString ( string text ) : string

Converts a string into GWC header file format.

EnginePocketPC ( ) : System
IsEarwigo ( string lua ) : bool

Determines whether this Lua code is from Earwigo.

IsUrwigo ( string lua ) : bool

Determines whether this Lua code is from Urwigo.

Private Methods

Method Description
ConvertCode ( string luaCode, string variable ) : string

Converts the Lua code into the correct Garmin dependent code.

Insert any special code to correct bugs for Garmins.

ConvertMedia ( Media media ) : MediaResource

Converts the media in a valid format for this player and returns a valid resource, if there are any.

Checks, which resource belongs to this player, change the size or format, if needed, and creates a MediaResource.

ReplaceLongStrings ( string luaCode ) : string
ReplaceShortStrings ( string luaCode ) : string
ReplaceSpaces ( Match m ) : string
ReplaceString ( string text ) : string

Method Details

ConvertCartridge() public method

Converts the Cartridge object in a format valid for the given engine.
- Convert Lua code - Convert strings in special format and insert any special code - Convert medias
public ConvertCartridge ( Cartridge cartridge ) : Cartridge
cartridge Cartridge Cartridge object to convert.
return Cartridge

ConvertString() public method

Converts a string into GWC header file format.
public ConvertString ( string text ) : string
text string Original string.
return string

EnginePocketPC() public method

public EnginePocketPC ( ) : System
return System

IsEarwigo() public static method

Determines whether this Lua code is from Earwigo.
public static IsEarwigo ( string lua ) : bool
lua string Lua code.
return bool

IsUrwigo() public static method

Determines whether this Lua code is from Urwigo.
public static IsUrwigo ( string lua ) : bool
lua string Lua code.
return bool