Fixed-step coordinator that applies lockstep inputs before the existing RTS system pipeline. 更多...
#include <RTSReplay.h>
Public 成员函数 | |
| RTSLockstep () | |
| Construct with a 60 Hz fixed simulation interval. | |
| Result< void > | setFixedStep (Duration value) |
| Set a finite, strictly positive fixed interval. | |
| Result< std::size_t > | step (RTS &world, IRTSActionExecutor &executor, std::uint64_t count=1) |
| Advance an exact number of deterministic ticks. | |
| Result< void > | queue (RTSReplayCommand command) |
| Queue a command relative to the current lockstep timeline. | |
| RTSCommandLog & | commands () noexcept |
| Mutable command-log boundary for import/export tooling. | |
| const RTSCommandLog & | commands () const noexcept |
| Read-only command-log boundary. | |
| SimulationTick | currentTick () const noexcept |
| Current completed simulation tick. | |
| Duration | fixedStep () const noexcept |
| Configured fixed interval. | |
| void | reset (SimulationTick tick={}, bool clearCommands=true) noexcept |
| Reset the timeline and optionally retain the command history/queue. | |
详细描述
Fixed-step coordinator that applies lockstep inputs before the existing RTS system pipeline.
在文件 RTSReplay.h 第 85 行定义.
构造及析构函数说明
◆ RTSLockstep()
| eve::rts::RTSLockstep::RTSLockstep | ( | ) |
Construct with a 60 Hz fixed simulation interval.
在文件 RTSReplay.cpp 第 412 行定义.
引用了 duration , 以及 eve::Duration::fromSeconds().
成员函数说明
◆ commands() [1/2]
|
inlinenoexcept |
Read-only command-log boundary.
在文件 RTSReplay.h 第 104 行定义.
◆ commands() [2/2]
|
inlinenoexcept |
Mutable command-log boundary for import/export tooling.
在文件 RTSReplay.h 第 102 行定义.
◆ currentTick()
|
inlinenoexcept |
Current completed simulation tick.
在文件 RTSReplay.h 第 106 行定义.
◆ fixedStep()
|
inlinenoexcept |
Configured fixed interval.
在文件 RTSReplay.h 第 108 行定义.
◆ queue()
|
inline |
Queue a command relative to the current lockstep timeline.
在文件 RTSReplay.h 第 98 行定义.
◆ reset()
|
noexcept |
Reset the timeline and optionally retain the command history/queue.
在文件 RTSReplay.cpp 第 441 行定义.
引用了 tick.
◆ setFixedStep()
Set a finite, strictly positive fixed interval.
在文件 RTSReplay.cpp 第 417 行定义.
引用了 eve::Applied, eve::Status::success(), eve::Result< T >::success() , 以及 value.
◆ step()
| Result< std::size_t > eve::rts::RTSLockstep::step | ( | RTS & | world, |
| IRTSActionExecutor & | executor, | ||
| std::uint64_t | count = 1 |
||
| ) |
Advance an exact number of deterministic ticks.
- 返回
- Total accepted commands and processed RTS system records.
在文件 RTSReplay.cpp 第 423 行定义.
引用了 eve::Applied, eve::rts::RTSCommandLog::apply(), count, eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvariantViolation, eve::Duration::nanoseconds(), eve::NoOp, eve::Status::success(), eve::Result< T >::success(), eve::detail::StrongUint64< Tag >::value() , 以及 world.
该类的文档由以下文件生成:
- src/modules/rts/RTSReplay.h
- src/modules/rts/RTSReplay.cpp