载入中...
搜索中...
未找到
StateAccess.h
浏览该文件的文档.
86 [[nodiscard]] virtual std::optional<eve::Value> value(std::string_view subject, std::string_view key) const = 0;
88 [[nodiscard]] virtual std::optional<bool> hasTag(std::string_view subject, std::string_view tag) const = 0;
90 [[nodiscard]] virtual std::optional<eve::Value> attribute(std::string_view subject, std::string_view key) const = 0;
92 [[nodiscard]] virtual std::optional<eve::Value> resource(std::string_view subject, std::string_view key) const = 0;
94 [[nodiscard]] virtual std::optional<eve::Value> state(std::string_view subject, std::string_view key) const = 0;
114 [[nodiscard]] virtual eve::Result<MutationReceipt> apply(std::span<const StateMutation> mutations,
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
All-or-nothing mutation boundary owned by the consumer.
Definition StateAccess.h:107
virtual eve::Result< MutationReceipt > apply(std::span< const StateMutation > mutations, const MutationContext &context)=0
Apply a complete mutation set atomically.
Read-only world-state boundary owned by consumers such as Dialogue.
Definition StateAccess.h:79
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 > hasTag(std::string_view subject, std::string_view tag) const =0
Query exact tag membership.
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< bool > authority(std::string_view subject, std::string_view scope) const =0
Query read-only authority for a scope.
virtual std::optional< eve::Value > value(std::string_view subject, std::string_view key) const =0
Query a generic world value.
virtual std::optional< eve::Value > attribute(std::string_view subject, std::string_view key) const =0
Query a numeric or structured attribute.
Definition StateAccess.h:20
@ Remove
@ AddTag
@ AddNumber
@ RemoveTag
std::string SubjectId
Stable textual identity used at a cross-module state boundary.
Definition StateAccess.h:23
Correlation metadata shared by a mutation transaction.
Definition StateAccess.h:57
Observable result of an all-or-nothing mutation request.
Definition StateAccess.h:64
One immutable mutation request owned by its caller.
Definition StateAccess.h:42