载入中...
搜索中...
未找到
BehaviorGraph.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <map>
8#include <string>
9#include <vector>
10
11namespace eve::npc_ai_editing {
12
15 GraphNodeId node;
16 std::string opcode;
18 std::vector<GraphNodeId> children;
19};
20
23 EditorStatus status = EditorStatus::Failed;
25 GraphNodeId root;
26 std::vector<BehaviorInstruction> instructions;
27 std::vector<EditorDiagnostic> diagnostics;
28};
29
32public:
34 std::string domain() const override { return "behavior"; }
37 const GraphPinRecord& to) const override;
39 BehaviorCompileResult compile(const GraphDocumentData& graph) const;
40};
41
42} // namespace eve::npc_ai_editing
std::string from
#define EVENGINE_API_BACKENDS
Definition Export.h:108
HexCoordinates to
Cell the unit walks towards on this segment.
Definition HexUnits.cpp:64
std::map< std::string, std::vector< std::string > > graph
Definition Package.cpp:59
Domain-owned typed connection policy.
Deterministic owning value tree shared by authoring hosts.
Typed behavior-tree/decision-graph connection and compilation policy.
std::string domain() const override
Domain.
StatusCode
Stable outcome category for an operation.
Definition Status.h:27
detail::StrongUint64< detail::RevisionTag > Revision
Monotonic content/state revision used for optimistic-concurrency checks.
Definition Revision.h:13
Result of domain-specific connection validation.
Immutable graph document value sent to a domain compiler.
Stable typed pin owned by a graph node.
Immutable compiled behavior graph with source revision.
std::vector< BehaviorInstruction > instructions
std::vector< EditorDiagnostic > diagnostics
Deterministic behavior-graph instruction consumed by runtime adapters.
std::vector< GraphNodeId > children