Dialogue Module
Description
The module registrar is responsible for wiring all dialogue services into the shared service registry during startup. The runtime module provides identity and metadata for the Dialogue feature module.
DialogueModuleRegistrar
Interface
| Type |
|---|
| IModuleRegistrar |
Properties
| Name | Type | Value |
|---|---|---|
| Order | int | 200 |
Registration
The registrar's Register() method wires the following services:
| Service Interface | Implementation |
|---|---|
| IBlackboardScopeRegistry | Registers Conversation scope |
| IConversationService | AgentConversationOrchestrator |
| IAgentConversationService | AgentConversationOrchestrator |
| IConversationTriggerService | ConversationTriggerEvaluator |
| IDialogueEventingService | DialogueEventingService |
| IDialogueTreeSelector | RequirementGatedDialogueTreeSelector |
| IOverheadDialogueTextService | OverheadDialogueTextService |
| IDialogueBeatCatalog | DialogueBeatCatalog |
| IDialogueCameraService | DialogueCameraService |
| IDialogueInputService | DialogueInputService |
| IGameInputProvider | DialogueInputService |
| IPlayerInputBinding | CompositePlayerInputBinding (first-person, then Starter Assets) |
| IConversationPlayerControlPolicy | SettingsDrivenConversationPlayerControlPolicy |
| IConversationOverrideService | ConversationOverrideService |
| IConversationEndPolicy | Composite via ConversationEndPolicyResolver |
| IConversationWorldPausePolicy | SettingsDrivenConversationWorldPausePolicy |
| IConversationCursorPolicy | SettingsDrivenConversationCursorPolicy |
| IConversationAgentControlPolicy | Composite via ConversationAgentControlPolicyResolver |
| IResponseService | DialogueResponseService |
| IMoodService | DialogueMoodService |
| IDialogueBeatMarkdownCodecRegistry | DialogueBeatMarkdownCodecRegistry (editor only) |
| ITextTokenService | TextTokenService |
| ITokenResolver (multi) | BlackboardTokenResolver (prefix: bb) |
| ITokenResolver (multi) | ParticipantTokenResolver (prefix: speaker) |
| ITokenResolver (multi) | ParticipantTokenResolver (prefix: other) |
| ITokenResolver (multi) | WorldTokenResolver (prefix: world) |
Built-in beat types (Text, Audio, Animation, Mood, Camera) are also registered here.
Initialization
The Initialize() method:
- registers fallback services for
IWorldClock,ILocalisationService, andILocaleServiceif not already provided by another module - applies the default locale from the locale settings asset, if one is configured
- adds a
ConversationTriggerDrivercomponent to the bootstrap - runs
ValidateModuleSetup, which reports missing or misconfigured module settings
Requires CIVIL-AI-SYSTEM
When CIVIL-AI-SYSTEM is installed, it provides IWorldClock and IItemCatalog implementations. The fallbacks registered by the Dialogue module are only used when running standalone.
DialogueModule
Interface
| Type |
|---|
| ConfigurableModule |
Properties
| Name | Type | Value |
|---|---|---|
| Id | ModuleIdentifier | bardtre.dialogue |
| Name | string | Dialogue System |
| Version | string | 1.0.0 |
Dependencies
| Type | Modules |
|---|---|
| Required | None |
| Optional | None |