NDialogueStatement

NodeAstNodeloreline.NDialogueStatement (Class)

Represents a dialogue statement in the AST (character: "text").

Instance Members

character: String

Name of the speaking character.


characterPos: Position

Position of the character label


Content of the dialogue.


type(): String
Returns
String

each(handleNode: Function): Void
Name Type
handleNode Function

toJson(): Dynamic

Converts the dialogue statement to a JSON representation.

Returns Description
Dynamic Dynamic object containing dialogue data

new(id: NodeId, pos: Position, character: String, characterPos: Position, content: NStringLiteral, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): Void

Creates a new dialogue statement node.

Name Type Default Description
id NodeId
pos Position Position in source where this dialogue appears
character String Name of the speaking character
characterPos Position Position of the character label
content NStringLiteral String literal containing the dialogue text
leadingComments Array<Comment> (optional) Optional comments before the dialogue
trailingComments Array<Comment> (optional) Optional comments after the dialogue

Metadata

Name Parameters
:hxGen -