载入中...
搜索中...
未找到
eve::warship::WarshipRegistry类 参考

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

void eve::warship::WarshipRegistry::clearFunctions ( )
static

在文件 WarshipRegistry.cpp 第 321 行定义.

被这些函数引用 eve::warship::Warship::clearFunctionDefinitions().

◆ clearHulls()

void eve::warship::WarshipRegistry::clearHulls ( )
static

在文件 WarshipRegistry.cpp 第 319 行定义.

被这些函数引用 eve::warship::Warship::clearHullDefinitions().

◆ findFunction()

const CompartmentFunctionDef * eve::warship::WarshipRegistry::findFunction ( const std::string &  id)
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()

const WarshipDefinition * eve::warship::WarshipRegistry::findHull ( const std::string &  id)
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()

int eve::warship::WarshipRegistry::functionCount ( )
static

在文件 WarshipRegistry.cpp 第 329 行定义.

被这些函数引用 eve::warship::Warship::getFunctionDefinitionCount().

◆ hasFunction()

bool eve::warship::WarshipRegistry::hasFunction ( const std::string &  id)
static

◆ hasHull()

bool eve::warship::WarshipRegistry::hasHull ( const std::string &  id)
static

在文件 WarshipRegistry.cpp 第 323 行定义.

引用了 findHull().

被这些函数引用 eve::warship::Warship::hasHullDefinition().

◆ hullCount()

int eve::warship::WarshipRegistry::hullCount ( )
static

在文件 WarshipRegistry.cpp 第 327 行定义.

被这些函数引用 eve::warship::Warship::getHullDefinitionCount().

◆ loadFunctionsFromJson()

Result< int > eve::warship::WarshipRegistry::loadFunctionsFromJson ( std::string_view  json)
static

◆ loadHullsFromJson()

Result< int > eve::warship::WarshipRegistry::loadHullsFromJson ( std::string_view  json)
static

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