# keremtekelek/dialoguesystemplus-plugin architecture

> Architecture diagram of the GitHub repository keremtekelek/dialoguesystemplus-plugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keremtekelek/dialoguesystemplus-plugin
- Repository: https://github.com/keremtekelek/dialoguesystemplus-plugin

## Overview

Dialogue System Plus is an Unreal Engine plugin for visually authored, context-sensitive NPC dialogue. The authoring workflow uses Blueprint dialogue nodes and compiles their content into DataTables; at runtime, player interaction starts dialogue, the subsystem selects and displays responses using mood, prior choices, and game events, and player choices affect subsequent dialogue. The graph also shows interaction, event memory, mood UI, and name exposure. Runtime links are limited to relationships visible in the README or source index; localization is documented but has no corresponding source path in the supplied tree.

Main entry points: [`Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp) (Dialogue subsystem), [`Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp`](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp) (Dialogue writer), [`Source/DialogueSystemPlugin/Private/UI/Widget_Dialogue.cpp`](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/UI/Widget_Dialogue.cpp) (Dialogue widget), [`Source/DialogueSystemPlugin/Private/ActorComponents/AC_InteractionSystem.cpp`](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/ActorComponents/AC_InteractionSystem.cpp) (Interaction component)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Dialogue authoring"]
  node_writer["Dialogue writer<br/>[DialogueWriter.cpp]"]
  node_npcnode["NPC dialogue node"]
  node_playernode["Player dialogue node"]
  node_choicenode["Choice node"]
  node_dialoguedata[("Dialogue DataTables")]
end

subgraph group_runtime["Dialogue runtime"]
  node_interaction["Interaction component"]
  node_dialoguesystem["Dialogue subsystem"]
  node_dialogueactor["NPC dialogue component"]
  node_localization["Localization subsystem"]
end

subgraph group_context["Context and actors"]
  node_eventmanager["Event manager"]
  node_settings["Plugin settings"]
  node_memory["Dialogue context"]
end

subgraph group_presentation["Player presentation"]
  node_dialoguewidget["Dialogue widget"]
  node_moodwidget["Mood meter"]
end

node_player(("Player"))

node_npcnode -->|"compiled by"| node_writer
node_playernode -->|"compiled by"| node_writer
node_choicenode -->|"compiled by"| node_writer
node_writer -->|"exports rows"| node_dialoguedata
node_player -->|"interacts"| node_interaction
node_interaction -->|"starts dialogue"| node_dialoguesystem
node_dialoguesystem -->|"scores dialogue"| node_dialoguedata
node_dialoguesystem -->|"reads NPC state"| node_dialogueactor
node_dialoguesystem -->|"handles events"| node_eventmanager
node_dialoguesystem -->|"loads settings"| node_settings
node_dialoguesystem -->|"scores context"| node_memory
node_dialoguesystem -->|"displays dialogue"| node_dialoguewidget
node_dialoguesystem -->|"updates mood UI"| node_moodwidget
node_dialoguewidget -->|"submits choice"| node_dialoguesystem
node_dialogueactor -->|"updates mood UI"| node_moodwidget
node_eventmanager -.->|"notifies events"| node_dialoguesystem
node_player -->|"views responses"| node_dialoguewidget

click node_writer "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp"
click node_npcnode "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/NPC_DialogueNode.cpp"
click node_playernode "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/MainCharacterDialogue_Node.cpp"
click node_choicenode "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/MainCharacterChoices_Node.cpp"
click node_interaction "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/ActorComponents/AC_InteractionSystem.cpp"
click node_dialoguesystem "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp"
click node_dialogueactor "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/ActorComponents/AC_DialogueSystem.cpp"
click node_eventmanager "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_EventManager.cpp"
click node_settings "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Settings/DialogueSystemPluginSettings.cpp"
click node_memory "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Public/EnumsAndStructs/GlobalEnumsAndStructs.h"
click node_dialoguewidget "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/UI/Widget_Dialogue.cpp"
click node_moodwidget "https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/UI/Widget_MoodMeter.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_writer,node_npcnode,node_playernode,node_choicenode,node_dialoguedata toneBlue
class node_interaction,node_dialoguesystem,node_dialogueactor,node_localization toneAmber
class node_eventmanager,node_settings,node_memory toneMint
class node_dialoguewidget,node_moodwidget toneRose
class node_player toneIndigo
```

## Components

### Dialogue authoring

- [Dialogue writer](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp): `Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp`
- [NPC dialogue node](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/NPC_DialogueNode.cpp): `Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/NPC_DialogueNode.cpp`
- [Player dialogue node](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/MainCharacterDialogue_Node.cpp): `Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/MainCharacterDialogue_Node.cpp`
- [Choice node](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/MainCharacterChoices_Node.cpp): `Source/DialogueSystemPlugin/Private/DialogueWriter/CustomNodes/MainCharacterChoices_Node.cpp`
- **Dialogue DataTables**

### Dialogue runtime

- [Interaction component](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/ActorComponents/AC_InteractionSystem.cpp): `Source/DialogueSystemPlugin/Private/ActorComponents/AC_InteractionSystem.cpp`
- [Dialogue subsystem](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp): `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`
- [NPC dialogue component](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/ActorComponents/AC_DialogueSystem.cpp): `Source/DialogueSystemPlugin/Private/ActorComponents/AC_DialogueSystem.cpp`
- **Localization subsystem**

### Context and actors

- [Event manager](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_EventManager.cpp): `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_EventManager.cpp`
- [Plugin settings](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/Settings/DialogueSystemPluginSettings.cpp): `Source/DialogueSystemPlugin/Private/Settings/DialogueSystemPluginSettings.cpp`
- [Dialogue context](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Public/EnumsAndStructs/GlobalEnumsAndStructs.h): `Source/DialogueSystemPlugin/Public/EnumsAndStructs/GlobalEnumsAndStructs.h`

### Player presentation

- [Dialogue widget](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/UI/Widget_Dialogue.cpp): `Source/DialogueSystemPlugin/Private/UI/Widget_Dialogue.cpp`
- [Mood meter](https://github.com/keremtekelek/dialoguesystemplus-plugin/blob/main/Source/DialogueSystemPlugin/Private/UI/Widget_MoodMeter.cpp): `Source/DialogueSystemPlugin/Private/UI/Widget_MoodMeter.cpp`

### Other components

- **Player**

## Connections

- NPC dialogue node → Dialogue writer: compiled by (evidence: `Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp`)
- Player dialogue node → Dialogue writer: compiled by (evidence: `Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp`)
- Choice node → Dialogue writer: compiled by (evidence: `Source/DialogueSystemPlugin/Private/DialogueWriter/DialogueWriter.cpp`)
- Dialogue writer → Dialogue DataTables: exports rows (evidence: `README.md`)
- Player → Interaction component: interacts (evidence: `README.md`)
- Interaction component → Dialogue subsystem: starts dialogue (evidence: `Source/DialogueSystemPlugin/Private/ActorComponents/AC_InteractionSystem.cpp`)
- Dialogue subsystem → Dialogue DataTables: scores dialogue (evidence: `README.md`)
- Dialogue subsystem → NPC dialogue component: reads NPC state (evidence: `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`)
- Dialogue subsystem → Event manager: handles events (evidence: `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`)
- Dialogue subsystem → Plugin settings: loads settings (evidence: `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`)
- Dialogue subsystem → Dialogue context: scores context (evidence: `README.md`)
- Dialogue subsystem → Dialogue widget: displays dialogue (evidence: `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`)
- Dialogue subsystem → Mood meter: updates mood UI (evidence: `Source/DialogueSystemPlugin/Private/Subsystems/Subsystem_Dialogue.cpp`)
- Dialogue widget → Dialogue subsystem: submits choice (evidence: `Source/DialogueSystemPlugin/Private/UI/Widget_Dialogue.cpp`)
- NPC dialogue component → Mood meter: updates mood UI (evidence: `Source/DialogueSystemPlugin/Private/ActorComponents/AC_DialogueSystem.cpp`)
- Event manager → Dialogue subsystem: notifies events
- Player → Dialogue widget: views responses (evidence: `README.md`)
