载入中...
搜索中...
未找到
ClimbingECS.h
浏览该文件的文档.
154[[nodiscard]] EVENGINE_API_DOMAINS std::span<const ClimbingSystemContract> climbingSystemContracts() noexcept;
235 auto view = ecs::View<EntityRoot, ClimbingBody, ClimbingIntent, ClimbingState, ClimbingLinks>();
277 return eve::Result<std::size_t>::failure(eve::Diagnostic::error(eve::DiagnosticCode::InvalidArgument,
281 auto view = ecs::View<EntityRoot, ClimbingBody, ClimbingIntent, ClimbingState, ClimbingLinks>();
Tick-addressed command buffering for deterministic climbing input.
Deterministic climbing/parkour planning and capsule-constrained execution.
Typed composition link from a gameplay entity to a physics body.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Fixed-capacity owning candidate projection written once per PrePhysics probe phase.
Definition ClimbingECS.h:66
void clear() noexcept
Clear derived candidates without affecting runtime state.
Definition ClimbingECS.h:81
eve::SimulationTick tick() const noexcept
Tick that produced the current projection.
Definition ClimbingECS.h:83
std::span< const ClimbingCandidate > values() const noexcept
Return an immutable synchronous view invalidated by the next replace/clear.
Definition ClimbingECS.h:77
Fixed-capacity owning candidate set used by the production probe hot path.
Definition Climbing.h:329
PrePhysics selection/commit consumer over caller-selected domain entities.
Definition ClimbingECS.h:223
static eve::Result< std::size_t > step(physics::World3D &world, ClimbingCommand command, eve::SimulationTick tick)
Consume at most one buffered command and commit one execution per visible entity.
Definition ClimbingECS.h:231
Bounded owning post-simulation event batch safe to dispatch after the ECS View closes.
Definition ClimbingECS.h:121
eve::SimulationTick tick() const noexcept
Simulation tick at which the runtime queue was drained.
Definition ClimbingECS.h:131
std::span< const ClimbingEvent > values() const noexcept
Immutable synchronous event view.
Definition ClimbingECS.h:129
static ClimbingCoyoteState coyoteWindowState(eve::SimulationTick currentTick, eve::SimulationTick lastGroundedTick, std::uint64_t coyoteTicks) noexcept
Evaluate a grounded grace window without reading wall clock.
Definition ClimbingInput.cpp:87
static std::optional< BufferedClimbingCommand > peek(const ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick currentTick) noexcept
Observe the oldest eligible command without consuming or pruning intent.
Definition ClimbingInput.cpp:78
Physics-phase authoritative capsule motion consumer.
Definition ClimbingECS.h:264
static eve::Result< std::size_t > step(physics::World3D &world, const eve::SimulationStep &step, const ClimbingMotionInput &motion={})
Advance active executions and publish the corrected feet transform to Body and linked Physics body.
Definition ClimbingECS.h:272
PostPhysics derived pose and owning event-drain producer.
Definition ClimbingECS.h:467
static eve::Result< std::size_t > step(eve::SimulationTick tick)
Project pose constraints and drain runtime events without invoking external consumers inside the View...
Definition ClimbingECS.h:475
PrePhysics candidate producer over a caller-selected existing domain root.
Definition ClimbingECS.h:166
static eve::Result< std::size_t > step(physics::World3D &world, eve::SimulationTick tick)
Probe every entity in View<EntityRoot, Body, Intent, State, Links, CandidateBuffer>.
Definition ClimbingECS.h:179
Owner-thread climbing planner and executor for one character.
Definition Climbing.h:653
static eve::Result< ClimbingStart > tryStart(ClimbingRuntime &runtime, physics::World3D &world, const ClimbingPose &pose, ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick tick, eve::SimulationTick lastGroundedTick)
Start the best candidate and consume its input edge exactly once.
Definition ClimbingSelection.cpp:193
static eve::script::Borrowed< ClimbingRuntime > resolve(ClimbingRuntimeHandleRef reference) noexcept
Resolves a live runtime as a non-owning observation.
Definition ClimbingRegistry.cpp:12
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
Definition World3D.h:63
bool activeClimbingPhase(ClimbingPhase phase) noexcept
Active climbing phase.
Definition ClimbingECS.h:159
Definition Climbing.cpp:19
std::span< const ClimbingSystemContract > climbingSystemContracts() noexcept
Return immutable process-lifetime contracts for the four climbing ECS phases.
Definition ClimbingECS.cpp:67
ClimbingPhase
Execution lifecycle visible to gameplay and animation adapters.
Definition Climbing.h:470
@ Completed
@ Cancelled
ClimbingMovementMode
Movement mode used by action source-mode hard validation.
Definition Climbing.h:67
ClimbingCommand
Edge and held commands understood by the climbing input phase.
Definition ClimbingInput.h:22
@ InvalidArgument
@ StaleHandle
One owning edge command with deterministic lifetime and consumption evidence.
Definition ClimbingInput.h:28
Hot authoritative transient motor component; replicated by value for prediction.
Definition ClimbingECS.h:31
eve::SimulationTick lastOrdinaryJumpPressedTick
Definition ClimbingECS.h:47
eve::SimulationTick lastGroundedTick
Definition ClimbingECS.h:46
Hot authoritative intent component; contains no device or callback pointers.
Definition ClimbingInput.h:39
Cold authoritative cross-domain links; handles are resolved on every system step.
Definition ClimbingECS.h:58
std::string animationBindingId
Definition ClimbingECS.h:61
std::uint64_t animationBindingGeneration
Definition ClimbingECS.h:62
physics::PhysicsLink physicsBody
Definition ClimbingECS.h:59
Per-tick authored animation motion supplied before climbing warp and collision.
Definition Climbing.h:540
Derived PostPhysics pose projection; gameplay validity never depends on these weights.
Definition ClimbingECS.h:108
ClimbingExecutionId executionId
Definition ClimbingECS.h:109
Vec3 leftHandAnchor
Definition ClimbingECS.h:110
bool compactCollision
Definition ClimbingECS.h:117
float rightHandWeight
Definition ClimbingECS.h:113
float leftHandWeight
Definition ClimbingECS.h:112
float rightFootWeight
Definition ClimbingECS.h:115
float leftFootWeight
Definition ClimbingECS.h:114
Vec3 rightHandAnchor
Definition ClimbingECS.h:111
Input pose used for one deterministic candidate probe.
Definition Climbing.h:275
Hot authoritative execution component holding the module-owned runtime identity.
Definition ClimbingECS.h:96
Static review/tooling description of one concrete climbing ECS phase.
Definition ClimbingECS.h:140
std::string_view determinism
Definition ClimbingECS.h:150
std::string_view writeSet
Definition ClimbingECS.h:145
std::string_view entityScope
Definition ClimbingECS.h:142
std::string_view structuralChanges
Definition ClimbingECS.h:146
std::string_view services
Definition ClimbingECS.h:148
Small owning world-space vector used at climbing module boundaries.
Definition ClimbingPrimitives.h:18
Generation-qualified relationship between one world and one body.
Definition PhysicsLink.h:33