C# Class Gonzo.TreeWalker

Used tp walk a generated AST (Abstract Syntax Tree) for UI scripts.
Datei anzeigen Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Properties

Property Type Description
Controls UIControl>.Dictionary
Elements UIElement>.Dictionary
Strings string>.Dictionary

Public Methods

Method Description
Initialize ( string Path ) : void

Parses a UI script and walks the generated AST.

TreeWalker ( UIScreen Screen ) : System

Constructs a new TreeWalker instance.

Private Methods

Method Description
WalkTree ( UIParser State, AstNode node ) : void

Walks a generated AST (Abstract Syntax Tree) and creates the elements of this UIScreen.

Method Details

Initialize() public method

Parses a UI script and walks the generated AST.
public Initialize ( string Path ) : void
Path string The path to the script.
return void

TreeWalker() public method

Constructs a new TreeWalker instance.
public TreeWalker ( UIScreen Screen ) : System
Screen UIScreen A UIScreen instance.
return System

Property Details

Controls public_oe property

public Dictionary Controls
return UIControl>.Dictionary

Elements public_oe property

public Dictionary Elements
return UIElement>.Dictionary

Strings public_oe property

public Dictionary Strings
return string>.Dictionary