Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SerializableFunctionNode

[13:7] extends: FxObj

Wraps FXGL's SerializableFunctionNode (com.almasb.fxgl.cutscene.dialogue.SerializableFunctionNode), the Jackson-friendly form of FunctionNode (function-call line + numTimes counter) used during DialogueGraph persistence.

Methods

  • SerializableFunctionNode (TypeObj = null, string Text = "", int NumTimes = -1)

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

    • @p TypeObj is a DialogueNodeType enum value (use DialogueNodeType.FUNCTION).
    • @p Text is the function-call text.
    • @p NumTimes is the call cap (-1 for unlimited).
  • adopt (object Ajo)

    Wraps an existing SerializableFunctionNode AussomJavaObject.

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

    Returns the DialogueNodeType enum value.

  • getText ()

    Returns the function-call text. @r A string.

  • getNumTimes ()

    Returns the call cap (-1 for unlimited). @r An int.

  • 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