Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SerializableOption

[13:7] extends: FxObj

Wraps FXGL's SerializableOption (com.almasb.fxgl.cutscene.dialogue.SerializableOption), the Jackson-friendly value form of an Option used when persisting a DialogueGraph to JSON.

Methods

  • SerializableOption (int Id = -1, string Text = "", string Condition = "")

    Creates a new SerializableOption. Pass Id < 0 to construct an empty wrapper for adopt.

    • @p Id is the option id.
    • @p Text is the option display text.
    • @p Condition is the FXGL condition string.
  • adopt (object Ajo)

    Wraps an existing SerializableOption AussomJavaObject.

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

    Returns the option id. @r An int.

  • getText ()

    Returns the option text. @r A string.

  • getCondition ()

    Returns the condition string. @r A string.