Skip to main content

Chat System Service

Description

The main runtime controller for player-facing conversations. It manages the conversation lifecycle from open to close, navigates through nodes, handles option selection, and coordinates beat playback.

Interface

Type
IChatFlowController
IRuntimeDialogueDeadEndHandler

Inherits

Type
MonoBehaviour

Properties

NameType
CurrentNodeChatData
dialoguePanelViewDialoguePanelView
defaultTreeChatTreeData
activeChatTreeChatTreeData

Public Methods

NameParametersReturn TypeDescription
ApplyCurrentChatIAgentService agent, IAgentService listenervoidOpens a conversation with the given agent, resolves the tree, and begins playback.
ApplyCurrentChatstring idvoidNavigates to a specific node by ID within the current conversation.
SelectOptionstring optionIdvoidCalled when the player selects a dialogue option.
CloseChatN/AvoidCloses the current conversation and cleans up all session state.