载入中...
搜索中...
未找到
eve::tags 命名空间参考

类

struct  GameplayTagDefinition
 An owning gameplay-tag definition shared by runtime and editor tools. 更多...
 
class  GameplayTagRegistry
 Canonical owner of versioned gameplay-tag definitions. 更多...
 
struct  TagChangeEvent
 Immutable description of one tag or capability mutation. 更多...
 
class  Tags
 Script-facing module for generic tags and capabilities. 更多...
 
class  TagStore
 Deterministic storage for generic tags and capabilities. 更多...
 
class  TagStoreStateAdapter
 Adapts one TagStore to read tags and apply volatile tag mutations. 更多...
 

类型定义

using GameplayTagId = eve::detail::StrongUint64< GameplayTagIdTag >
 Stable FNV-1a identifier derived from a canonical gameplay-tag name.
 
using SubjectId = std::string
 Stable, game-defined identifier for an object carrying tags.
 

枚举

enum class  GameplayTagMatch { Exact , IncludeDescendants }
 Selects exact or hierarchical descendant matching. 更多...
 

函数

bool isValidGameplayTagName (std::string_view name) noexcept
 Returns whether a name is a canonical dot-separated gameplay tag.
 
GameplayTagId gameplayTagId (std::string_view name) noexcept
 Computes the stable 64-bit FNV-1a identifier of a canonical name.
 
bool gameplayTagMatches (std::string_view candidate, std::string_view query, GameplayTagMatch match) noexcept
 Tests exact or dot-boundary descendant membership.
 
 Module_IMPL (Tags, new Tags())
 

类型定义说明

◆ GameplayTagId

using eve::tags::GameplayTagId = typedef eve::detail::StrongUint64<GameplayTagIdTag>

Stable FNV-1a identifier derived from a canonical gameplay-tag name.

在文件 GameplayTag.h 第 20 行定义.

◆ SubjectId

using eve::tags::SubjectId = typedef std::string

Stable, game-defined identifier for an object carrying tags.

在文件 TagStore.h 第 16 行定义.

枚举类型说明

◆ GameplayTagMatch

enum class eve::tags::GameplayTagMatch
strong

Selects exact or hierarchical descendant matching.

枚举值
Exact 
IncludeDescendants 

在文件 GameplayTag.h 第 23 行定义.

函数说明

◆ gameplayTagId()

GameplayTagId eve::tags::gameplayTagId ( std::string_view  name)
noexcept

Computes the stable 64-bit FNV-1a identifier of a canonical name.

在文件 GameplayTag.cpp 第 44 行定义.

引用了 hash , 以及 name.

被这些函数引用 eve::tags::GameplayTagRegistry::fromValue() , 以及 eve::tags::GameplayTagRegistry::registerTag().

◆ gameplayTagMatches()

EVENGINE_API_FOUNDATION bool eve::tags::gameplayTagMatches ( std::string_view  candidate,
std::string_view  query,
GameplayTagMatch  match 
)
noexcept

Tests exact or dot-boundary descendant membership.

在文件 GameplayTag.cpp 第 53 行定义.

引用了 IncludeDescendants.

被这些函数引用 eve::tags::GameplayTagRegistry::search() , 以及 eve::tags::TagStore::subjectsWithTagMatching().

◆ isValidGameplayTagName()

◆ Module_IMPL()

eve::tags::Module_IMPL ( Tags  ,
new   Tags() 
)