Table of Contents

Class DialogueChoiceListener

Namespace
S1API.Dialogues
Assembly
S1API.dll

A static utility class that listens for and responds to specific dialogue choices in the game's dialogue system.

public static class DialogueChoiceListener
Inheritance
DialogueChoiceListener
Inherited Members

Methods

Register(DialogueHandler, string, Action)

public static void Register(DialogueHandler handlerRef, string label, Action action)

Parameters

handlerRef DialogueHandler

The reference to the DialogueHandler that manages dialogue choices.

label string

The label identifying the specific dialogue choice to be registered.

action Action

The callback action to execute when the dialogue choice is selected.