Assignment

Two values seperated by an equals. Usually an effect or condition ex: culture = albanian

Constructors

this
this(string k, Variant v)
Undocumented in source.

Members

Functions

add
void add(Node b)
Undocumented in source. Be warned that the author may not have intended to support it.
children
Node[] children()
Undocumented in source. Be warned that the author may not have intended to support it.
key
string key()
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(Node) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Node opIndex(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Node opIndex(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString(string indent)
Undocumented in source. Be warned that the author may not have intended to support it.
type
NodeType type()
Undocumented in source. Be warned that the author may not have intended to support it.
value_
Variant value_()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

opCall
Assignment opCall(string k, T v)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_key
string _key;
Undocumented in source.
_value
Variant _value;
Undocumented in source.

Inherited Members

From Node

children
Node[] children()

Gets all children of a block

type
NodeType type()

Returns a NodeType that corresponds to the type

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

opApply
int opApply(int delegate(Node) dg)

equivalent to looping over .children`

key
string key()

Gets the key of an assignment

value_
Variant value_()
Undocumented in source.
value
T value()

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

block
Block block()

Equivalent to .value!Block

add
void add(Node b)

Adds a node to a block

equals
bool equals(string k, T v)

Tests both the key and value of an assignment

toString
string toString()

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

toString
string toString(string indent)
Undocumented in source.

Meta