Midnight Blue Game and Engine
Public Member Functions | List of all members
MB2D.SetASTNode Class Reference

AST node representing the entry point for a 'set' command with an identifier and a value child More...

Inheritance diagram for MB2D.SetASTNode:
Inheritance graph
Collaboration diagram for MB2D.SetASTNode:
Collaboration graph

Public Member Functions

 SetASTNode (string ident, VariableASTNode val)
 Initializes a new instance of the T:MB2D.SetASTNode class. More...
 
override void Handle (MBConsole console)
 Handles setting the variable using the consoles Vars property. Checks if the identifier only starts with an alpha or underscore and handles any type checking or parse errors. More...
 

Detailed Description

AST node representing the entry point for a 'set' command with an identifier and a value child

Constructor & Destructor Documentation

§ SetASTNode()

MB2D.SetASTNode.SetASTNode ( string  ident,
VariableASTNode  val 
)
inline

Initializes a new instance of the T:MB2D.SetASTNode class.

Parameters
identIdentifier of the variable.
valValue to assign.

Member Function Documentation

§ Handle()

override void MB2D.SetASTNode.Handle ( MBConsole  console)
inlinevirtual

Handles setting the variable using the consoles Vars property. Checks if the identifier only starts with an alpha or underscore and handles any type checking or parse errors.

Parameters
consoleConsole to handle.

Implements MB2D.MBConsoleASTNode.

Here is the call graph for this function:

The documentation for this class was generated from the following file: