载入中...
搜索中...
未找到
eve::rts::RTSLockstep类 参考

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]

const RTSCommandLog & eve::rts::RTSLockstep::commands ( ) const
inlinenoexcept

Read-only command-log boundary.

在文件 RTSReplay.h 第 104 行定义.

◆ commands() [2/2]

RTSCommandLog & eve::rts::RTSLockstep::commands ( )
inlinenoexcept

Mutable command-log boundary for import/export tooling.

在文件 RTSReplay.h 第 102 行定义.

◆ currentTick()

SimulationTick eve::rts::RTSLockstep::currentTick ( ) const
inlinenoexcept

Current completed simulation tick.

在文件 RTSReplay.h 第 106 行定义.

◆ fixedStep()

Duration eve::rts::RTSLockstep::fixedStep ( ) const
inlinenoexcept

Configured fixed interval.

在文件 RTSReplay.h 第 108 行定义.

◆ queue()

Result< void > eve::rts::RTSLockstep::queue ( RTSReplayCommand  command)
inline

Queue a command relative to the current lockstep timeline.

在文件 RTSReplay.h 第 98 行定义.

◆ reset()

void eve::rts::RTSLockstep::reset ( SimulationTick  tick = {},
bool  clearCommands = true 
)
noexcept

Reset the timeline and optionally retain the command history/queue.

在文件 RTSReplay.cpp 第 441 行定义.

引用了 tick.

◆ setFixedStep()

Result< void > eve::rts::RTSLockstep::setFixedStep ( Duration  value)

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 
)

该类的文档由以下文件生成: