载入中...
搜索中...
未找到
StateAccessAdapter.h
浏览该文件的文档.
24 explicit AttributeSetStateAdapter(AttributeSet& attributes) noexcept : attributes_(attributes) {}
28 [[nodiscard]] std::optional<eve::Value> value(std::string_view subject, std::string_view key) const override;
31 [[nodiscard]] std::optional<bool> hasTag(std::string_view, std::string_view) const override { return std::nullopt; }
34 [[nodiscard]] std::optional<eve::Value> attribute(std::string_view subject, std::string_view key) const override;
42 [[nodiscard]] std::optional<eve::Value> state(std::string_view subject, std::string_view key) const override;
51 [[nodiscard]] eve::Result<eve::MutationReceipt> apply(std::span<const eve::StateMutation> mutations,
Consumer-owned query and mutation contracts for authoritative world state.
Adapts one AttributeSet to numeric world reads and volatile writes.
Definition StateAccessAdapter.h:21
std::optional< eve::Value > attribute(std::string_view subject, std::string_view key) const override
Query a numeric or structured attribute.
Definition StateAccessAdapter.cpp:38
AttributeSetStateAdapter(AttributeSet &attributes) noexcept
Bind a borrowed authoritative set for one subject.
Definition StateAccessAdapter.h:24
std::optional< bool > hasTag(std::string_view, std::string_view) const override
Query exact tag membership.
Definition StateAccessAdapter.h:31
eve::Result< eve::MutationReceipt > apply(std::span< const eve::StateMutation > mutations, const eve::MutationContext &context) override
Apply a complete mutation set atomically.
Definition StateAccessAdapter.cpp:46
std::optional< bool > authority(std::string_view, std::string_view) const override
Query read-only authority for a scope.
Definition StateAccessAdapter.h:45
std::optional< eve::Value > resource(std::string_view, std::string_view) const override
Query a resource value or marker.
Definition StateAccessAdapter.h:37
Generic owning collection of canonical attributes and modifiers.
Definition AttributeSet.h:160
All-or-nothing mutation boundary owned by the consumer.
Definition StateAccess.h:107
Read-only world-state boundary owned by consumers such as Dialogue.
Definition StateAccess.h:79
Definition AttributeProjection.cpp:9
Correlation metadata shared by a mutation transaction.
Definition StateAccess.h:57