Read-only world-state boundary owned by consumers such as Dialogue. 更多...
#include <StateAccess.h>
Public 成员函数 | |
| virtual | ~IStateQuery ()=default |
| I state query. | |
| virtual std::optional< eve::Value > | value (std::string_view subject, std::string_view key) const =0 |
| Query a generic world value. | |
| virtual std::optional< bool > | hasTag (std::string_view subject, std::string_view tag) const =0 |
| Query exact tag membership. | |
| virtual std::optional< eve::Value > | attribute (std::string_view subject, std::string_view key) const =0 |
| Query a numeric or structured attribute. | |
| virtual std::optional< eve::Value > | resource (std::string_view subject, std::string_view key) const =0 |
| Query a resource value or marker. | |
| virtual std::optional< eve::Value > | state (std::string_view subject, std::string_view key) const =0 |
| Query a persistent/world state value. | |
| virtual std::optional< bool > | authority (std::string_view subject, std::string_view scope) const =0 |
| Query read-only authority for a scope. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "eve.state.IStateQuery" |
详细描述
Read-only world-state boundary owned by consumers such as Dialogue.
Implementations are synchronous and must not retain query arguments or invoke unknown callbacks while holding a lock. nullopt means that this provider does not own the requested domain/key. A returned false is a known negative answer. The provider is borrowed by the caller and must outlive the query context; it is not retained by the capability registry after revoke.
在文件 StateAccess.h 第 79 行定义.
构造及析构函数说明
◆ ~IStateQuery()
|
virtualdefault |
I state query.
成员函数说明
◆ attribute()
|
pure virtual |
Query a numeric or structured attribute.
在 eve::attributes::AttributeSetStateAdapter, eve::statepatch::StatePatchStateAdapter , 以及 eve::tags::TagStoreStateAdapter 内被实现.
◆ authority()
|
pure virtual |
Query read-only authority for a scope.
在 eve::attributes::AttributeSetStateAdapter, eve::statepatch::StatePatchStateAdapter , 以及 eve::tags::TagStoreStateAdapter 内被实现.
◆ hasTag()
|
pure virtual |
Query exact tag membership.
在 eve::statepatch::StatePatchStateAdapter, eve::tags::TagStoreStateAdapter , 以及 eve::attributes::AttributeSetStateAdapter 内被实现.
◆ resource()
|
pure virtual |
Query a resource value or marker.
在 eve::attributes::AttributeSetStateAdapter, eve::statepatch::StatePatchStateAdapter , 以及 eve::tags::TagStoreStateAdapter 内被实现.
◆ state()
|
pure virtual |
Query a persistent/world state value.
在 eve::attributes::AttributeSetStateAdapter, eve::statepatch::StatePatchStateAdapter , 以及 eve::tags::TagStoreStateAdapter 内被实现.
◆ value()
|
pure virtual |
Query a generic world value.
在 eve::attributes::AttributeSetStateAdapter, eve::statepatch::StatePatchStateAdapter , 以及 eve::tags::TagStoreStateAdapter 内被实现.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 StateAccess.h 第 81 行定义.
该类的文档由以下文件生成:
- src/engine/common/StateAccess.h