Node

Represents a single usable thing in the given script

Members

Functions

add
void add(Node b)

Adds a node to a block

block
Block block()

Equivalent to .value!Block

children
Node[] children()

Gets all children of a block

equals
bool equals(string k, T v)

Tests both the key and value of an assignment

key
string key()

Gets the key of an assignment

opApply
int opApply(int delegate(Node) dg)

equivalent to looping over .children`

opIndex
Node opIndex(size_t i)

Should be equivalent to node.children[i]

opIndex
Node opIndex(string s)

Returns the first assignment with key s

toString
string toString()

Converts a node to a string that should be readable by the game

toString
string toString(string indent)
Undocumented in source.
type
NodeType type()

Returns a NodeType that corresponds to the type

value
T value()

Gets the value of an assignment or the value of a value

value_
Variant value_()
Undocumented in source.

Meta