载入中...
搜索中...
未找到
eve::rts::TagSet类 参考

Entity-local sorted tags; this is the RTS entity's tag authority. 更多...

#include <RTSTypes.h>

Public 成员函数

Result< void > add (std::string_view tag)
 Add a tag in deterministic lexical order.
 
Result< void > remove (std::string_view tag)
 Remove a tag, returning NotFound when it is absent.
 
bool contains (std::string_view tag) const noexcept
 Test exact tag membership.
 
const std::vector< std::string > & values () const noexcept
 Return tags in deterministic order.
 

详细描述

Entity-local sorted tags; this is the RTS entity's tag authority.

在文件 RTSTypes.h 第 153 行定义.

成员函数说明

◆ add()

Result< void > eve::rts::TagSet::add ( std::string_view  tag)

Add a tag in deterministic lexical order.

在文件 RTSTypes.cpp 第 233 行定义.

引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, key, eve::NoOp, eve::Status::success(), eve::Result< T >::success(), tag , 以及 value.

被这些函数引用 eve::rts::RTS::restoreState().

◆ contains()

bool eve::rts::TagSet::contains ( std::string_view  tag) const
noexcept

Test exact tag membership.

在文件 RTSTypes.cpp 第 251 行定义.

引用了 key, tag , 以及 value.

◆ remove()

Result< void > eve::rts::TagSet::remove ( std::string_view  tag)

Remove a tag, returning NotFound when it is absent.

在文件 RTSTypes.cpp 第 242 行定义.

引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, key, eve::NotFound, eve::Status::success(), eve::Result< T >::success(), tag , 以及 value.

◆ values()

const std::vector< std::string > & eve::rts::TagSet::values ( ) const
inlinenoexcept

Return tags in deterministic order.

在文件 RTSTypes.h 第 162 行定义.

被这些函数引用 eve::rts::RTS::restoreState() , 以及 eve::rts::RTSProjectileSystem::step().


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