载入中...
搜索中...
未找到
DnutCompiler.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
10
11#include <string>
12#include <string_view>
13#include <vector>
14
15namespace eve::dnut {
16
25 std::vector<SequenceAsset> assets;
26 std::vector<DnutDiagnostic> diagnostics;
27
29 [[nodiscard]] bool hasErrors() const;
30};
31
52[[nodiscard]] EVENGINE_API_PLATFORM DnutCompileOutput compileDnut(std::string_view source, const std::string& path,
53 const StepKindRegistry& registry);
54
70 const std::string& path,
71 const StepKindRegistry& registry);
72
73} // namespace eve::dnut
Domain-neutral source diagnostics for `.dnut` documents.
#define EVENGINE_API_PLATFORM
Definition Export.h:107
std::string path
Definition PlayHost.cpp:110
Domain-neutral compiled sequence graph for `.dnut` sources.
Extensible step vocabulary, payload schema and dispatch.
const UnitySourceAsset & source
Canonical step vocabulary owner and runtime handler router.
EVENGINE_API_PLATFORM bool hasErrors(const std::vector< DnutDiagnostic > &diagnostics)
Return whether any diagnostic is an error.
DnutCompileOutput compileDnut(std::string_view source, const std::string &path, const StepKindRegistry &registry)
Compile every story block of one .dnut document.
DnutCompileOutput compileDnutConversations(std::string_view source, const std::string &path, const StepKindRegistry &registry)
Compile legacy conversation blocks into canonical sequence assets.
Owning outcome of compiling one .dnut document.
std::vector< DnutDiagnostic > diagnostics
std::vector< SequenceAsset > assets