载入中...
搜索中...
未找到
DialogueSequence.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
6#include "common/Result.h"
13
14#include <span>
15#include <string>
16#include <string_view>
17#include <vector>
18
19namespace eve::dialogue {
20
23 std::string_view key);
24
27 std::string_view key);
28
31
34 const eve::Value& payload);
35
38 std::span<const eve::StateMutation> mutations);
39
43
46 const eve::dnut::SequenceAsset& asset, const eve::dnut::StepKindRegistry& registry);
47
55
56} // namespace eve::dialogue
Value::Object payload
Dialogue payment specifications and transaction composition.
Dialogue's state boundary, condition adapter, and command request protocol.
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
const GltfImportRequest & request
std::uint32_t key
Move-only, checked operation results for the common layer.
const RoadNode * node
Domain-neutral compiled sequence graph for `.dnut` sources.
Cross-frame interpreter for compiled `.dnut` sequences.
Consumer-owned query and mutation contracts for authoritative world state.
Extensible step vocabulary, payload schema and dispatch.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
The canonical owning dynamic value used by data-facing protocols.
Definition Value.h:31
Canonical step vocabulary owner and runtime handler router.
eve::Result< std::vector< eve::StateMutation > > decodeSequenceStateMutations(const eve::Value &payload)
Decode dialogue state mutations from one canonical payload object.
eve::Result< CommandRequest > decodeDialogueCommandRequest(const eve::dnut::SequenceCommandRequest &request)
Adapt an L1 command request to dialogue's transaction-bearing request.
std::string sequenceRoutePayloadString(const eve::dnut::SequenceRoute &route, std::string_view key)
Read an optional string from a route payload; missing or ill-typed values yield empty.
std::string sequencePayloadString(const eve::dnut::SequenceNode &node, std::string_view key)
Read an optional string from a node payload; missing or ill-typed values yield empty.
eve::Result< PaymentSpec > decodeSequencePayment(const eve::Value &payload)
Decode an optional dialogue payment from one canonical payload object.
eve::Result< void > validateDialogueSequenceAsset(const eve::dnut::SequenceAsset &asset, const eve::dnut::StepKindRegistry &registry)
Validate every dialogue-owned payload without taking control-flow ownership.
eve::Result< void > registerDialogueSequenceSteps(eve::dnut::StepKindRegistry &registry)
Register dialogue's line, choice, and command contracts and validators.
eve::Value encodeSequenceStateMutations(std::span< const eve::StateMutation > mutations)
Encode dialogue state mutations as the canonical payload array.
Immutable, parameterized and versioned compiled sequence.
Immutable request emitted by a generic command node.
One immutable step of a compiled sequence.
One outgoing edge of a sequence node.