Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Choice ¶
type Choice struct {
// contains filtered or unexported fields
}
Choice represents a single story node choice
type Node ¶
Node represents a story node
func NewNode ¶
NewNode initializes a new Node with the given text and predefined list of choice. You can pass in nil for choices and use the AddChoice method of the story Node to add a single choice
func (*Node) ExecuteCmd ¶
ExecuteCmd executes the input cmd against the list of choices and returns the appropriate next node in the graph
Click to show internal directories.
Click to hide internal directories.