Adapts one AttributeSet to numeric world reads and volatile writes. 更多...
#include <StateAccessAdapter.h>
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()
|
inlineexplicitnoexcept |
Bind a borrowed authoritative set for one subject.
在文件 StateAccessAdapter.h 第 24 行定义.
成员函数说明
◆ apply()
|
override |
Apply a complete mutation set atomically.
Applies .
在文件 StateAccessAdapter.cpp 第 46 行定义.
引用了 eve::Applied, context, eve::attributes::AttributeSet::getFinal(), eve::attributes::AttributeSet::has(), index, eve::InvalidArgument, eve::attributes::AttributeSet::modifyBase(), eve::NoOp, eve::attributes::AttributeSet::setBase(), eve::Status::success(), eve::Result< T >::success(), eve::state::MutationReceipt::transactionId , 以及 eve::Unsupported.
◆ attribute()
|
overridevirtual |
◆ authority()
|
inlineoverridevirtual |
◆ hasTag()
|
inlineoverridevirtual |
◆ resource()
|
inlineoverridevirtual |
Query a resource value or marker.
在文件 StateAccessAdapter.h 第 37 行定义.
◆ state()
|
overridevirtual |
◆ value()
|
overridevirtual |
Query a generic world value.
在文件 StateAccessAdapter.cpp 第 33 行定义.
引用了 eve::attributes::AttributeSet::getFinal(), eve::attributes::AttributeSet::has(), key , 以及 subject.
该类的文档由以下文件生成:
- src/modules/attributes/StateAccessAdapter.h
- src/modules/attributes/StateAccessAdapter.cpp
Public 成员函数 继承自