CommandNode

Contains a single "word" within a command "sentence", see CommandResolver's documentation for more.

Members

Functions

byCommandSentence
CommandResolveResult!UserDataT byCommandSentence(RangeOfStrings range)
finalWords
CommandNode!UserDataT[] finalWords()

Retrieves all child CommandNodes that are of type CommandNodeType.finalWord.

Variables

children
CommandNode!UserDataT[] children;

The children of this node.

sentence
string sentence;

A string of the entire sentence up to (and including) this word, please note that currently only final words have this field set.

type
CommandNodeType type;

What type of node this is.

userData
UserDataT userData;

User-provided data for this node. Note that partial words don't contain any user data.

word
string word;

The word this node contains.

Parameters

UserDataT

See CommandResolver's documentation.

Meta