Borrowed world and cross-domain callbacks used by all conversations in this facade. 更多...
#include <DialogueFlow.h>
Public 类型 | |
| using | CommandParticipantFactory = std::function< eve::Result< std::unique_ptr< eve::transaction::ITransactionParticipant > >(const CommandRequest &)> |
| Factory for transaction participants that stage an operation or Action. | |
Public 属性 | |
| std::string | subject |
| Stable world subject used by state-backed conditions. | |
| eve::IStateQuery * | stateQuery = nullptr |
| Borrowed read-only world state provider. | |
| eve::IStateMutation * | stateMutation = nullptr |
| Borrowed all-or-nothing world mutation provider. | |
| std::function< eve::decision::ConditionResult(const eve::Value &)> | conditionEvaluator |
| Optional custom condition evaluator; empty uses the shared adapter. | |
| CommandRequestHandler | operationHandler |
| Handler for requests whose kind is Operation. | |
| CommandRequestHandler | gameplayActionHandler |
| Handler for requests whose kind is GameplayAction. | |
| DialogueAccountBindings | accounts |
| Borrowed authoritative money/reputation account adapters. | |
| CommandParticipantFactory | commandParticipantFactory |
| Optional factory used to stage an atomic operation or Action. | |
| std::function< eve::Result< std::string >(const std::string &)> | contentReader |
| Injected UTF-8 content reader used by loadDnutFileChecked. | |
详细描述
Borrowed world and cross-domain callbacks used by all conversations in this facade.
stateQuery and stateMutation are never owned or retained by the configuration object; DialogueFlow borrows them until the next configure/clear call or destruction. The callbacks are copied into the facade and invoked synchronously on the DialogueFlow thread. An empty conditionEvaluator selects the shared DialogueState/decision adapter. An empty operation or gameplay handler rejects requests of that kind.
在文件 DialogueFlow.h 第 54 行定义.
成员类型定义说明
◆ CommandParticipantFactory
| using eve::dialogue::DialogueFlow::IntegrationConfig::CommandParticipantFactory = std::function<eve::Result<std::unique_ptr<eve::transaction::ITransactionParticipant> >( const CommandRequest&)> |
Factory for transaction participants that stage an operation or Action.
- 备注
- The returned participant is owned for the synchronous transaction only; it must implement compensation when later state effects can fail.
在文件 DialogueFlow.h 第 74 行定义.
类成员变量说明
◆ accounts
| DialogueAccountBindings eve::dialogue::DialogueFlow::IntegrationConfig::accounts |
Borrowed authoritative money/reputation account adapters.
在文件 DialogueFlow.h 第 68 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ commandParticipantFactory
| CommandParticipantFactory eve::dialogue::DialogueFlow::IntegrationConfig::commandParticipantFactory |
Optional factory used to stage an atomic operation or Action.
在文件 DialogueFlow.h 第 78 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ conditionEvaluator
| std::function<eve::decision::ConditionResult(const eve::Value&)> eve::dialogue::DialogueFlow::IntegrationConfig::conditionEvaluator |
Optional custom condition evaluator; empty uses the shared adapter.
在文件 DialogueFlow.h 第 62 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ contentReader
| std::function<eve::Result<std::string>(const std::string&)> eve::dialogue::DialogueFlow::IntegrationConfig::contentReader |
Injected UTF-8 content reader used by loadDnutFileChecked.
- 备注
- The callback runs synchronously on the owner thread and must not re-enter DialogueFlow. Dialogue has no filesystem-module dependency.
在文件 DialogueFlow.h 第 84 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ gameplayActionHandler
| CommandRequestHandler eve::dialogue::DialogueFlow::IntegrationConfig::gameplayActionHandler |
Handler for requests whose kind is GameplayAction.
在文件 DialogueFlow.h 第 66 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ operationHandler
| CommandRequestHandler eve::dialogue::DialogueFlow::IntegrationConfig::operationHandler |
Handler for requests whose kind is Operation.
在文件 DialogueFlow.h 第 64 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ stateMutation
| eve::IStateMutation* eve::dialogue::DialogueFlow::IntegrationConfig::stateMutation = nullptr |
Borrowed all-or-nothing world mutation provider.
在文件 DialogueFlow.h 第 60 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ stateQuery
| eve::IStateQuery* eve::dialogue::DialogueFlow::IntegrationConfig::stateQuery = nullptr |
Borrowed read-only world state provider.
在文件 DialogueFlow.h 第 58 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
◆ subject
| std::string eve::dialogue::DialogueFlow::IntegrationConfig::subject |
Stable world subject used by state-backed conditions.
在文件 DialogueFlow.h 第 56 行定义.
被这些函数引用 eve::dialogue::DialogueFlow::configureIntegration().
该结构体的文档由以下文件生成:
- src/modules/dialogue/DialogueFlow.h