载入中...
搜索中...
未找到
eve::state::IStateMutation类 参考abstract
All-or-nothing mutation boundary owned by the consumer. 更多...
#include <StateAccess.h>
类 eve::state::IStateMutation 继承关系图:
Public 成员函数 | |
| 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 属性 | |
| static constexpr const char * | capabilityName = "eve.state.IStateMutation" |
详细描述
All-or-nothing mutation boundary owned by the consumer.
Implementations must validate the complete span before publishing any change. The call is synchronous, runs on the provider's documented thread, and must not retain the span or values after returning. A failed Result promises that no observable world state was changed.
在文件 StateAccess.h 第 107 行定义.
构造及析构函数说明
◆ ~IStateMutation()
|
virtualdefault |
I state mutation.
成员函数说明
◆ apply()
|
pure virtual |
Apply a complete mutation set atomically.
被这些函数引用 eve::dialogue::DialogueStateContext::apply() , 以及 eve::dialogue::DialogueStateMutationParticipant::commit().
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 StateAccess.h 第 109 行定义.
该类的文档由以下文件生成:
- src/engine/common/StateAccess.h