载入中...
搜索中...
未找到
eve::rpg::RpgStoryCatalogue类 参考

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()

void eve::rpg::RpgStoryCatalogue::clear ( )
static

Discard every published story.

在文件 RpgDialect.cpp 第 579 行定义.

被这些函数引用 eve::rpg::RPG::clearStories().

◆ contains()

bool eve::rpg::RpgStoryCatalogue::contains ( const std::string &  storyId)
static

Return whether an exact story id is published.

在文件 RpgDialect.cpp 第 583 行定义.

被这些函数引用 eve::rpg::RPG::hasStory().

◆ count()

int eve::rpg::RpgStoryCatalogue::count ( )
static

Return the published story count.

在文件 RpgDialect.cpp 第 581 行定义.

被这些函数引用 eve::rpg::RPG::getStoryCount().

◆ replaceFromDnutStrict()

eve::Result< int > eve::rpg::RpgStoryCatalogue::replaceFromDnutStrict ( const std::string &  source,
const std::string &  path 
)
static

Compile and atomically publish every story block of one document.

参数
sourceFull .dnut text; it is not retained.
pathSource identity reported in diagnostics.
返回
Published story count, or a ParseError diagnostic 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().

被这些函数引用 eve::rpg::RPG::replaceStoriesFromDnut().

◆ storyIds()

std::vector< std::string > eve::rpg::RpgStoryCatalogue::storyIds ( )
static

Return every published story id in lexical order.

在文件 RpgDialect.cpp 第 585 行定义.

引用了 ids , 以及 size.


该类的文档由以下文件生成: