Strict process-local catalogue of .dnut story assets.
更多...
#include <RpgDialect.h>
静态 Public 成员函数 | |
| static eve::Result< int > | replaceFromDnutStrict (const std::string &source, const std::string &path) |
Compile and atomically publish every story block of one document. | |
| static void | clear () |
| Discard every published story. | |
| static int | count () |
| Return the published story count. | |
| static bool | contains (const std::string &storyId) |
| Return whether an exact story id is published. | |
| static std::vector< std::string > | storyIds () |
| Return every published story id in lexical order. | |
详细描述
Strict process-local catalogue of .dnut story assets.
Replacement is atomic: a document with any error leaves the previous catalogue untouched, so a broken hot reload cannot take down live content.
@thread Owner thread only; no synchronization is performed.
在文件 RpgDialect.h 第 240 行定义.
成员函数说明
◆ clear()
|
static |
◆ contains()
|
static |
Return whether an exact story id is published.
在文件 RpgDialect.cpp 第 583 行定义.
被这些函数引用 eve::rpg::RPG::hasStory().
◆ count()
|
static |
Return the published story count.
在文件 RpgDialect.cpp 第 581 行定义.
被这些函数引用 eve::rpg::RPG::getStoryCount().
◆ replaceFromDnutStrict()
|
static |
Compile and atomically publish every story block of one document.
- 参数
-
source Full .dnuttext; it is not retained.path Source identity reported in diagnostics.
- 返回
- Published story count, or a
ParseErrordiagnostic listing the first problem; the previous catalogue is preserved on failure. @cost Linear in the document size.
在文件 RpgDialect.cpp 第 553 行定义.
引用了 eve::dnut::compileDnut(), eve::Diagnostic::error(), eve::dnut::Error, eve::Result< T >::failure(), eve::InvalidArgument, message, output, eve::ParseError, path, eve::rpg::rpgStoryStepRegistry(), size, source , 以及 eve::Result< T >::success().
◆ storyIds()
|
static |
该类的文档由以下文件生成:
- src/modules/rpg/RpgDialect.h
- src/modules/rpg/RpgDialect.cpp