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

Process-local catalogue of quest-generation archetypes. 更多...

#include <QuestGeneration.h>

静态 Public 成员函数

static eve::Result< int > replaceFromJsonStrict (const std::string &json)
 Strictly validate and atomically replace every generation archetype.
 
static void clear ()
 Clear every archetype on the owning content thread.
 
static int count ()
 Return the committed archetype count.
 
static const QuestGenerationArchetype * find (const std::string &id)
 Find one archetype by id.
 
static std::vector< std::string > ids ()
 Stable ids currently registered. @cost Low — copies the archetype id list; call during content setup, not per frame.
 

详细描述

Process-local catalogue of quest-generation archetypes.

在文件 QuestGeneration.h 第 74 行定义.

成员函数说明

◆ clear()

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

Clear every archetype on the owning content thread.

在文件 QuestGeneration.cpp 第 803 行定义.

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

◆ count()

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

Return the committed archetype count.

在文件 QuestGeneration.cpp 第 805 行定义.

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

◆ find()

const QuestGenerationArchetype * eve::rpg::QuestGenerationCatalogue::find ( const std::string &  id)
static

Find one archetype by id.

返回
Borrowed nullable definition owned by the catalogue. @lifetime Invalidated by clear() or a successful replacement.

在文件 QuestGeneration.cpp 第 807 行定义.

引用了 eve::rpg::table().

◆ ids()

std::vector< std::string > eve::rpg::QuestGenerationCatalogue::ids ( )
static

Stable ids currently registered. @cost Low — copies the archetype id list; call during content setup, not per frame.

在文件 QuestGeneration.cpp 第 813 行定义.

引用了 out.

◆ replaceFromJsonStrict()

eve::Result< int > eve::rpg::QuestGenerationCatalogue::replaceFromJsonStrict ( const std::string &  json)
static

Strictly validate and atomically replace every generation archetype.

参数
jsonObject or non-empty array of archetype objects (eve.rpg.quest-generation-archetypes optional).
返回
Committed archetype count, or a structured failure preserving the prior catalogue. @thread Call on the owning content/simulation thread. @reentrancy No callbacks are invoked.

在文件 QuestGeneration.cpp 第 772 行定义.

引用了 archetype, eve::Conflict, eve::Result< T >::failure(), eve::InvalidArgument, objects, eve::json::Document::parse(), eve::ParseError, eve::json::Document::root(), root, size, eve::Result< T >::success() , 以及 eve::json::Document::valid().

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


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