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
Properties
| Name | Type |
|---|
| CurrentNode | ChatData |
| dialoguePanelView | DialoguePanelView |
| defaultTree | ChatTreeData |
| activeChatTree | ChatTreeData |
Public Methods
| Name | Parameters | Return Type | Description |
|---|
| ApplyCurrentChat | IAgentService agent, IAgentService listener | void | Opens a conversation with the given agent, resolves the tree, and begins playback. |
| ApplyCurrentChat | string id | void | Navigates to a specific node by ID within the current conversation. |
| SelectOption | string optionId | void | Called when the player selects a dialogue option. |
| CloseChat | N/A | void | Closes the current conversation and cleans up all session state. |