载入中...
搜索中...
未找到
eve::attributes::AttributeSetStateAdapter类 参考final

Adapts one AttributeSet to numeric world reads and volatile writes. 更多...

#include <StateAccessAdapter.h>

类 eve::attributes::AttributeSetStateAdapter 继承关系图:
eve::state::IStateQuery eve::state::IStateMutation

Public 成员函数

 AttributeSetStateAdapter (AttributeSet &attributes) noexcept
 Bind a borrowed authoritative set for one subject.
 
std::optional< eve::Value > value (std::string_view subject, std::string_view key) const override
 Query a generic world value.
 
std::optional< bool > hasTag (std::string_view, std::string_view) const override
 Query exact tag membership.
 
std::optional< eve::Value > attribute (std::string_view subject, std::string_view key) const override
 Query a numeric or structured attribute.
 
std::optional< eve::Value > resource (std::string_view, std::string_view) const override
 Query a resource value or marker.
 
std::optional< eve::Value > state (std::string_view subject, std::string_view key) const override
 Query a persistent/world state value.
 
std::optional< bool > authority (std::string_view, std::string_view) const override
 Query read-only authority for a scope.
 
eve::Result< eve::MutationReceipt > apply (std::span< const eve::StateMutation > mutations, const eve::MutationContext &context) override
 Apply a complete mutation set atomically.
 
- Public 成员函数 继承自 eve::state::IStateQuery
virtual ~IStateQuery ()=default
 I state query.
 
- Public 成员函数 继承自 eve::state::IStateMutation
virtual ~IStateMutation ()=default
 I state mutation.
 
virtual eve::Result< MutationReceipt > apply (std::span< const StateMutation > mutations, const MutationContext &context)=0
 Apply a complete mutation set atomically.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::state::IStateQuery
static constexpr const char * capabilityName = "eve.state.IStateQuery"
 
- 静态 Public 属性 继承自 eve::state::IStateMutation
static constexpr const char * capabilityName = "eve.state.IStateMutation"
 

详细描述

Adapts one AttributeSet to numeric world reads and volatile writes.

Reputation is represented by an ordinary canonical attribute name (for example reputation.factionA); no dialogue-owned reputation mirror is introduced. Persistent changes must be sent to a StatePatch participant and later projected into the authoritative AttributeSet by its owning system.

在文件 StateAccessAdapter.h 第 21 行定义.

构造及析构函数说明

◆ AttributeSetStateAdapter()

eve::attributes::AttributeSetStateAdapter::AttributeSetStateAdapter ( AttributeSet &  attributes)
inlineexplicitnoexcept

Bind a borrowed authoritative set for one subject.

在文件 StateAccessAdapter.h 第 24 行定义.

成员函数说明

◆ apply()

◆ attribute()

std::optional< eve::Value > eve::attributes::AttributeSetStateAdapter::attribute ( std::string_view  subject,
std::string_view  key 
) const
overridevirtual

Query a numeric or structured attribute.

Attribute.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.cpp 第 38 行定义.

引用了 key, subject , 以及 value.

◆ authority()

std::optional< bool > eve::attributes::AttributeSetStateAdapter::authority ( std::string_view  ,
std::string_view   
) const
inlineoverridevirtual

Query read-only authority for a scope.

Authority.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.h 第 45 行定义.

◆ hasTag()

std::optional< bool > eve::attributes::AttributeSetStateAdapter::hasTag ( std::string_view  ,
std::string_view   
) const
inlineoverridevirtual

Query exact tag membership.

True when tag.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.h 第 31 行定义.

◆ resource()

std::optional< eve::Value > eve::attributes::AttributeSetStateAdapter::resource ( std::string_view  ,
std::string_view   
) const
inlineoverridevirtual

Query a resource value or marker.

Resource.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.h 第 37 行定义.

◆ state()

std::optional< eve::Value > eve::attributes::AttributeSetStateAdapter::state ( std::string_view  subject,
std::string_view  key 
) const
overridevirtual

Query a persistent/world state value.

State.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.cpp 第 42 行定义.

引用了 key, subject , 以及 value.

◆ value()

std::optional< eve::Value > eve::attributes::AttributeSetStateAdapter::value ( std::string_view  subject,
std::string_view  key 
) const
overridevirtual

Query a generic world value.

Value.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.cpp 第 33 行定义.

引用了 eve::attributes::AttributeSet::getFinal(), eve::attributes::AttributeSet::has(), key , 以及 subject.


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