Process-level catalogues for hull templates and compartment functions. @ownership Registry owns the definition tables; WarshipEntity borrows pointers. @thread Owner / composition thread only (not concurrent). 更多...
#include <WarshipRegistry.h>
静态 Public 成员函数 | |
| static Result< int > | loadHullsFromJson (std::string_view json) |
| static Result< int > | loadFunctionsFromJson (std::string_view json) |
| static void | clearHulls () |
| static void | clearFunctions () |
| static bool | hasHull (const std::string &id) |
| static bool | hasFunction (const std::string &id) |
| static int | hullCount () |
| static int | functionCount () |
| static const WarshipDefinition * | findHull (const std::string &id) |
| Lookup a hull template. @ownership Borrowed; valid until the next clear / replace of that id. @nullable Yes when unknown. | |
| static const CompartmentFunctionDef * | findFunction (const std::string &id) |
| Lookup a compartment function. @ownership Borrowed; valid until the next clear / replace of that id. @nullable Yes when unknown. | |
详细描述
Process-level catalogues for hull templates and compartment functions. @ownership Registry owns the definition tables; WarshipEntity borrows pointers. @thread Owner / composition thread only (not concurrent).
在文件 WarshipRegistry.h 第 18 行定义.
成员函数说明
◆ clearFunctions()
|
static |
在文件 WarshipRegistry.cpp 第 321 行定义.
◆ clearHulls()
|
static |
在文件 WarshipRegistry.cpp 第 319 行定义.
◆ findFunction()
|
static |
Lookup a compartment function. @ownership Borrowed; valid until the next clear / replace of that id. @nullable Yes when unknown.
在文件 WarshipRegistry.cpp 第 337 行定义.
引用了 end.
被这些函数引用 hasFunction() , 以及 eve::warship::WarshipSystem::recomputeCapabilities().
◆ findHull()
|
static |
Lookup a hull template. @ownership Borrowed; valid until the next clear / replace of that id. @nullable Yes when unknown.
在文件 WarshipRegistry.cpp 第 331 行定义.
引用了 end.
被这些函数引用 eve::warship::Warship::getHullDefinitionCategory(), eve::warship::Warship::getHullDefinitionMobility(), hasHull() , 以及 eve::warship::Warship::newWarship().
◆ functionCount()
|
static |
在文件 WarshipRegistry.cpp 第 329 行定义.
被这些函数引用 eve::warship::Warship::getFunctionDefinitionCount().
◆ hasFunction()
|
static |
◆ hasHull()
|
static |
在文件 WarshipRegistry.cpp 第 323 行定义.
引用了 findHull().
◆ hullCount()
|
static |
在文件 WarshipRegistry.cpp 第 327 行定义.
◆ loadFunctionsFromJson()
|
static |
◆ loadHullsFromJson()
|
static |
该类的文档由以下文件生成:
- src/modules/warship/WarshipRegistry.h
- src/modules/warship/WarshipRegistry.cpp