Deterministic simulation durations for the three timed action phases. 更多...
#include <Action.h>
Public 成员函数 | |
| EVENGINE_API_PLATFORM Result< Duration > | total () const |
| Sum of windup + active + recover. | |
Public 属性 | |
| Duration | windup = Duration::zero() |
| Time spent in Windup before Active. | |
| Duration | active = Duration::zero() |
| Time for which the Active result remains in progress. | |
| Duration | recover = Duration::zero() |
| Time spent in Recover before completion. | |
详细描述
Deterministic simulation durations for the three timed action phases.
This is the sole phase-machine authority read by ActionRuntime. Durations are injected values; no action code reads a wall or monotonic clock. When an ActionTimeline is attached, timing.total() must equal timeline.duration. Timeline splitTimestamps are physical section markers and are never read by ActionRuntime — see actionTimingFromPhysicalSections for the optional assembly projection used when authoring timing from those sections.
成员函数说明
◆ total()
Sum of windup + active + recover.
- 返回
- Owning total duration, or a structured overflow failure.
在文件 Action.cpp 第 70 行定义.
引用了 active, eve::Result< T >::failure(), recover, eve::Duration::tryAdd() , 以及 windup.
类成员变量说明
◆ active
| Duration eve::action::ActionTiming::active = Duration::zero() |
Time for which the Active result remains in progress.
被这些函数引用 eve::action::actionTimingFromPhysicalSections(), eve::action::ActionRuntime::advance(), total() , 以及 eve::action::ActionDefinition::validate().
◆ recover
| Duration eve::action::ActionTiming::recover = Duration::zero() |
Time spent in Recover before completion.
被这些函数引用 eve::action::actionTimingFromPhysicalSections(), eve::action::ActionRuntime::advance(), total() , 以及 eve::action::ActionDefinition::validate().
◆ windup
| Duration eve::action::ActionTiming::windup = Duration::zero() |
Time spent in Windup before Active.
被这些函数引用 eve::action::actionTimingFromPhysicalSections(), eve::action::ActionRuntime::advance(), total() , 以及 eve::action::ActionDefinition::validate().
该结构体的文档由以下文件生成:
- src/modules/action/Action.h
- src/modules/action/Action.cpp