载入中...
搜索中...
未找到
eve::climbing::ClimbingInputSystem类 参考

Input-phase operations over a ClimbingIntent component. 更多...

#include <ClimbingInput.h>

静态 Public 成员函数

static eve::Result< void > submit (ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick pressedTick, std::uint64_t bufferTicks)
 Queue one edge command with expiry derived from an exact tick budget.
 
static eve::Result< void > submit (ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick pressedTick, const ClimbingProfileDefinition &profile)
 Queue one edge command using the authoritative profile input window.
 
static std::size_t prune (ClimbingIntent &intent, eve::SimulationTick currentTick) noexcept
 Remove expired and already-consumed records; returns the number removed.
 
static eve::Result< std::optional< BufferedClimbingCommand > > consume (ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick currentTick, ClimbingExecutionId executionId)
 Atomically mark the oldest eligible command consumed by one committed execution.
 
static std::optional< BufferedClimbingCommand > peek (const ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick currentTick) noexcept
 Observe the oldest eligible command without consuming or pruning intent.
 
static ClimbingCoyoteState coyoteWindowState (eve::SimulationTick currentTick, eve::SimulationTick lastGroundedTick, std::uint64_t coyoteTicks) noexcept
 Evaluate a grounded grace window without reading wall clock.
 

静态 Public 属性

static constexpr std::size_t MaxBufferedCommands = 16
 Hard safety bound preventing an untrusted producer from growing intent indefinitely.
 

详细描述

Input-phase operations over a ClimbingIntent component.

Structural mutation: none. Read service: injected SimulationTick only. The system invokes no callbacks and produces bit-exact results for the same command stream.

在文件 ClimbingInput.h 第 52 行定义.

成员函数说明

◆ consume()

eve::Result< std::optional< BufferedClimbingCommand > > eve::climbing::ClimbingInputSystem::consume ( ClimbingIntent &  intent,
ClimbingCommand  command,
eve::SimulationTick  currentTick,
ClimbingExecutionId  executionId 
)
static

Atomically mark the oldest eligible command consumed by one committed execution.

返回
Owning consumed record, or a successful empty optional when no eligible command exists.

在文件 ClimbingInput.cpp 第 57 行定义.

引用了 eve::Applied, eve::climbing::ClimbingIntent::commands, eve::Diagnostic::error(), executionId, found, eve::InvalidArgument, eve::detail::StrongUint64< Tag >::isZero(), eve::NoOp, prune() , 以及 eve::Status::success().

被这些函数引用 eve::climbing::ClimbingSelectionSystem::tryStart() , 以及 eve::climbing::ClimbingServiceSelectionSystem::tryStart().

◆ coyoteWindowState()

ClimbingCoyoteState eve::climbing::ClimbingInputSystem::coyoteWindowState ( eve::SimulationTick  currentTick,
eve::SimulationTick  lastGroundedTick,
std::uint64_t  coyoteTicks 
)
staticnoexcept

Evaluate a grounded grace window without reading wall clock.

在文件 ClimbingInput.cpp 第 87 行定义.

引用了 eve::climbing::Eligible , 以及 eve::climbing::Outside.

被这些函数引用 eve::climbing::ClimbingSelectionSystem::tryStart() , 以及 eve::climbing::ClimbingServiceSelectionSystem::tryStart().

◆ peek()

std::optional< BufferedClimbingCommand > eve::climbing::ClimbingInputSystem::peek ( const ClimbingIntent &  intent,
ClimbingCommand  command,
eve::SimulationTick  currentTick 
)
staticnoexcept

Observe the oldest eligible command without consuming or pruning intent.

在文件 ClimbingInput.cpp 第 78 行定义.

引用了 found.

被这些函数引用 eve::climbing::ClimbingEcsSelectionSystem::step(), eve::climbing::ClimbingSelectionSystem::tryStart() , 以及 eve::climbing::ClimbingServiceSelectionSystem::tryStart().

◆ prune()

std::size_t eve::climbing::ClimbingInputSystem::prune ( ClimbingIntent &  intent,
eve::SimulationTick  currentTick 
)
staticnoexcept

Remove expired and already-consumed records; returns the number removed.

在文件 ClimbingInput.cpp 第 49 行定义.

被这些函数引用 consume() , 以及 submit().

◆ submit() [1/2]

eve::Result< void > eve::climbing::ClimbingInputSystem::submit ( ClimbingIntent &  intent,
ClimbingCommand  command,
eve::SimulationTick  pressedTick,
const ClimbingProfileDefinition &  profile 
)
static

Queue one edge command using the authoritative profile input window.

在文件 ClimbingInput.cpp 第 43 行定义.

引用了 eve::climbing::ClimbingProfileDefinition::inputBufferTicks , 以及 submit().

◆ submit() [2/2]

eve::Result< void > eve::climbing::ClimbingInputSystem::submit ( ClimbingIntent &  intent,
ClimbingCommand  command,
eve::SimulationTick  pressedTick,
std::uint64_t  bufferTicks 
)
static

类成员变量说明

◆ MaxBufferedCommands

constexpr std::size_t eve::climbing::ClimbingInputSystem::MaxBufferedCommands = 16
staticconstexpr

Hard safety bound preventing an untrusted producer from growing intent indefinitely.

在文件 ClimbingInput.h 第 55 行定义.

被这些函数引用 submit().


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