One presentation instruction: what to show, where, and until when. 更多...
#include <Presentation.h>
Public 属性 | |
| std::uint64_t | sequence = 0 |
| Battle event sequence this intent was projected from. | |
| SubjectRef | subject |
| The unit the intent is about. | |
| SubjectRef | other |
| The other unit involved (ability target, attacker), when there is one. | |
| UnitVisualState | state = UnitVisualState::Idle |
| Cell | from |
| Origin cell, when the intent has geometry. | |
| Cell | to |
| Destination or target cell, when the intent has geometry. | |
| std::vector< Cell > | path |
| Traversal the consumer may animate; empty when not applicable. | |
| Revision | revision |
| Battle revision this intent was projected from. | |
| SimulationTick | tick = SimulationTick::zero() |
| Battle tick this intent was projected from. | |
| SimulationTick | expiresAtTick = SimulationTick::zero() |
| Tick after which the intent is stale. | |
详细描述
One presentation instruction: what to show, where, and until when.
- 备注
- Presentation is not authoritative and must be droppable:
revisionlets a consumer discard intents older than the state it is drawing, andexpiresAtTickbounds every transient one. Geometry that the event stream does not carry (from,to,path) is filled from the accepted command the event points at, so there is still exactly one authority for it.
在文件 Presentation.h 第 88 行定义.
类成员变量说明
◆ expiresAtTick
| SimulationTick eve::tactics::PresentationIntent::expiresAtTick = SimulationTick::zero() |
Tick after which the intent is stale.
Zero means "no expiry": only durable states use it, and they are exactly the ones whose revert trigger is PresentationRevertTrigger::Never.
在文件 Presentation.h 第 112 行定义.
◆ from
| Cell eve::tactics::PresentationIntent::from |
Origin cell, when the intent has geometry.
在文件 Presentation.h 第 97 行定义.
被这些函数引用 eve::tactics::PresentationProjector::project() , 以及 eve::tactics::PresentationProjector::revert().
◆ other
| SubjectRef eve::tactics::PresentationIntent::other |
The other unit involved (ability target, attacker), when there is one.
在文件 Presentation.h 第 94 行定义.
被这些函数引用 eve::tactics::PresentationProjector::project() , 以及 eve::tactics::PresentationProjector::revert().
◆ path
| std::vector<Cell> eve::tactics::PresentationIntent::path |
Traversal the consumer may animate; empty when not applicable.
在文件 Presentation.h 第 101 行定义.
◆ revision
| Revision eve::tactics::PresentationIntent::revision |
Battle revision this intent was projected from.
在文件 Presentation.h 第 103 行定义.
◆ sequence
| std::uint64_t eve::tactics::PresentationIntent::sequence = 0 |
Battle event sequence this intent was projected from.
在文件 Presentation.h 第 90 行定义.
◆ state
| UnitVisualState eve::tactics::PresentationIntent::state = UnitVisualState::Idle |
在文件 Presentation.h 第 95 行定义.
◆ subject
| SubjectRef eve::tactics::PresentationIntent::subject |
The unit the intent is about.
在文件 Presentation.h 第 92 行定义.
◆ tick
| SimulationTick eve::tactics::PresentationIntent::tick = SimulationTick::zero() |
Battle tick this intent was projected from.
在文件 Presentation.h 第 105 行定义.
◆ to
| Cell eve::tactics::PresentationIntent::to |
Destination or target cell, when the intent has geometry.
在文件 Presentation.h 第 99 行定义.
被这些函数引用 eve::tactics::PresentationProjector::project() , 以及 eve::tactics::PresentationProjector::revert().
该结构体的文档由以下文件生成:
- src/modules/tactics/Presentation.h