Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SerializableEdge

[13:7] extends: FxObj

Wraps FXGL's SerializableEdge (com.almasb.fxgl.cutscene.dialogue.SerializableEdge), the Jackson-friendly form of a DialogueEdge (source node id, option id, target node id) used during graph persistence.

Methods

  • SerializableEdge (int SourceID = -1, int OptionID = 0, int TargetID = -1)

    Creates a new SerializableEdge. Pass SourceID < 0 to construct an empty wrapper for adopt.

    • @p SourceID is the source node's id.
    • @p OptionID is the source option id (0 if unused).
    • @p TargetID is the target node's id.
  • adopt (object Ajo)

    Wraps an existing SerializableEdge AussomJavaObject.

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

    Returns the source node id. @r An int.

  • getOptionID ()

    Returns the option id. @r An int.

  • getTargetID ()

    Returns the target node id. @r An int.