载入中...
搜索中...
未找到
eve::tactics::PresentationRevert结构体 参考
The explicit undo contract for one intent. 更多...
#include <Presentation.h>
Public 成员函数 | |
| constexpr bool | isRevertable () const noexcept |
| Whether a consumer may undo the intent at all. | |
Public 属性 | |
| UnitVisualState | restingState = UnitVisualState::Idle |
| The state to restore when the trigger fires. | |
| PresentationRevertTrigger | trigger = PresentationRevertTrigger::Never |
| std::uint64_t | sequence = 0 |
| Event sequence the revert belongs to, for correlation. | |
详细描述
The explicit undo contract for one intent.
- 备注
- A consumer that applies an intent must either keep it until its trigger fires and then apply
restingState, or drop it.revertableis false for durable states, and asking to revert those is a refusal rather than a silent no-op.
在文件 Presentation.h 第 122 行定义.
成员函数说明
◆ isRevertable()
|
inlineconstexprnoexcept |
Whether a consumer may undo the intent at all.
在文件 Presentation.h 第 130 行定义.
引用了 eve::tactics::Never , 以及 trigger.
类成员变量说明
◆ restingState
| UnitVisualState eve::tactics::PresentationRevert::restingState = UnitVisualState::Idle |
The state to restore when the trigger fires.
在文件 Presentation.h 第 124 行定义.
◆ sequence
| std::uint64_t eve::tactics::PresentationRevert::sequence = 0 |
Event sequence the revert belongs to, for correlation.
在文件 Presentation.h 第 127 行定义.
◆ trigger
| PresentationRevertTrigger eve::tactics::PresentationRevert::trigger = PresentationRevertTrigger::Never |
在文件 Presentation.h 第 125 行定义.
被这些函数引用 isRevertable().
该结构体的文档由以下文件生成:
- src/modules/tactics/Presentation.h