Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SerializableTextNode

[13:7] extends: FxObj

Wraps FXGL's SerializableTextNode (com.almasb.fxgl.cutscene.dialogue.SerializableTextNode), the Jackson-friendly form of TextNode (or BranchNode, which shares the same data shape) used during DialogueGraph persistence.

Methods

  • SerializableTextNode (TypeObj = null, string Text = "", OptionsList = null)

    Creates a new SerializableTextNode. Pass null for TypeObj to construct an empty wrapper for adopt.

    • @p TypeObj is a DialogueNodeType enum value (use DialogueNodeType.TEXT or DialogueNodeType.BRANCH).
    • @p Text is the line text.
    • @p OptionsList is an Aussom list of SerializableOption wrappers (default empty list).
  • adopt (object Ajo)

    Wraps an existing SerializableTextNode AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a SerializableTextNode.
    • @r A new wrapper.
  • getType ()

    Returns the DialogueNodeType enum value.

  • getText ()

    Returns the line text. @r A string.

  • getOptions ()

    Returns the option list. @r An AussomJavaObject around a List.

  • getAudio ()

    Returns the audio file name. @r A string.

  • setAudio (string Audio)

    Sets the audio file name.

    • @p Audio is the audio file name string.
    • @r this object