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()
|
static |
Clear every archetype on the owning content thread.
在文件 QuestGeneration.cpp 第 803 行定义.
◆ count()
|
static |
Return the committed archetype count.
在文件 QuestGeneration.cpp 第 805 行定义.
◆ find()
|
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()
|
static |
Stable ids currently registered. @cost Low — copies the archetype id list; call during content setup, not per frame.
在文件 QuestGeneration.cpp 第 813 行定义.
引用了 out.
◆ replaceFromJsonStrict()
|
static |
Strictly validate and atomically replace every generation archetype.
- 参数
-
json Object or non-empty array of archetype objects ( eve.rpg.quest-generation-archetypesoptional).
- 返回
- 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().
该类的文档由以下文件生成:
- src/modules/rpg/QuestGeneration.h
- src/modules/rpg/QuestGeneration.cpp