Class: DialogueTree

DialogueTree


new DialogueTree(id)

Parameters:
Name Type Description
id string
Source:
Returns:
Type
DialogueTree

Methods


addBranch(branchID [, setRoot])

Creates a Branch in the DialogueTree

Parameters:
Name Type Argument Default Description
branchID string
setRoot boolean <optional>
false
Source:
Returns:
Type
Branch

getBranch(id)

Parameters:
Name Type Description
id string
Source:
Returns:
Type
Branch

play( [branch] [, parameter])

Parameters:
Name Type Argument Default Description
branch string <optional>
this.root
parameter * <optional>
Source:
Returns:
Type
Promise.<Any>

setRoot(id)

Parameters:
Name Type Description
id string
Source:
Returns:
Type
DialogueTree