18 const auto found =
object.find(std::string(
name));
19 return found ==
object.end() ? nullptr : &
found->second;
24 if (!
text)
return false;
31 if (!
value)
return false;
33 if (!parsed)
return false;
45 if (!parsed)
return false;
52 if (!parsed)
return false;
53 output = parsed.value().value;
54 return parsed.value().consumed == parsed.value().size;
63 if (!parsed)
return false;
71 return array && array->size() == 3 && numericFloat((*array)[0],
output.x) && numericFloat((*array)[1],
output.y) &&
72 numericFloat((*array)[2],
output.z);
103 else if (
value ==
"requested")
105 else if (
value ==
"aligning")
107 else if (
value ==
"launching")
109 else if (
value ==
"climbing" ||
value ==
"traversing")
113 else if (
value ==
"landing")
115 else if (
value ==
"recovering")
117 else if (
value ==
"hanging")
119 else if (
value ==
"dropping")
121 else if (
value ==
"completed")
123 else if (
value ==
"cancelled")
125 else if (
value ==
"failed")
127 else if (
value ==
"balanced")
129 else if (
value ==
"swinging")
141 return eve::Result<std::vector<ClimbingEvent>>::failure(
143 "pendingEvents", {},
"climbing.snapshot"));
144 std::vector<ClimbingEvent>
events;
145 events.reserve(array->size());
152 std::uint64_t
tick = 0;
156 !
readString(*
object,
"actionId", event.actionId) ||
event.actionId.empty() ||
161 "pendingEvents." + std::to_string(
index), {},
"climbing.snapshot"));
167 "pendingEvents." + std::to_string(
index) +
".metadata", {},
"climbing.snapshot"));
168 event.metadata.reserve(metadata->size());
170 const auto*
text = item.getIf<std::string>();
174 "pendingEvents." + std::to_string(
index) +
".metadata", {},
"climbing.snapshot"));
175 event.metadata.push_back(*
text);
180 if (!
first && event.tick < previousTick)
183 "pendingEvents." + std::to_string(
index) +
".tick", {},
"climbing.snapshot"));
185 previousTick =
event.tick;
186 events.push_back(std::move(event));
193 {
"actionId",
value.actionId},
194 {
"definitionGeneration", std::to_string(
value.definitionGeneration)},
195 {
"world", std::to_string(
value.world.packed())},
196 {
"obstacleBody", std::to_string(
value.obstacleBody.packed())},
197 {
"obstacleShape", std::to_string(
value.obstacleShape.packed())},
198 {
"obstacleBodyId",
value.obstacleBodyId},
199 {
"obstacleShapeId",
value.obstacleShapeId},
200 {
"ignoredBodyId",
value.ignoredBodyId},
201 {
"frontPoint", vecValue(
value.frontPoint)},
202 {
"topPoint", vecValue(
value.topPoint)},
203 {
"landingFeet", vecValue(
value.landingFeet)},
204 {
"surfaceNormal", vecValue(
value.surfaceNormal)},
205 {
"surfaceTangent", vecValue(
value.surfaceTangent)},
206 {
"leftHandAnchor", vecValue(
value.leftHandAnchor)},
207 {
"rightHandAnchor", vecValue(
value.rightHandAnchor)},
208 {
"bodyLocalTop", vecValue(
value.bodyLocalTop)},
209 {
"bodyLocalLanding", vecValue(
value.bodyLocalLanding)},
210 {
"obstacleHeight",
value.obstacleHeight},
211 {
"obstacleDepth",
value.obstacleDepth},
212 {
"gapDistance",
value.gapDistance},
213 {
"clearanceHeight",
value.clearanceHeight},
214 {
"slopeRadians",
value.slopeRadians},
215 {
"curvature",
value.curvature},
216 {
"supportShapeTag",
value.supportShapeTag},
217 {
"supportMaterialId",
value.supportMaterialId},
218 {
"probeRecipe",
static_cast<std::int64_t
>(
value.probeRecipe)},
219 {
"score",
value.score},
220 {
"kind",
static_cast<std::int64_t
>(
value.kind)},
221 {
"support",
static_cast<std::int64_t
>(
value.support)},
226 const ClimbingAnchorReservation& reservation) {
229 {
"graphHandle", std::to_string(
graph.packed())},
230 {
"graphOwnerEpoch", std::to_string(
graph.ownerEpoch)},
231 {
"graphId",
node.graphId},
232 {
"nodeId",
node.nodeId},
233 {
"nodeGraphGeneration", std::to_string(
node.graphGeneration)},
234 {
"reservationId", std::to_string(reservation.id.value())},
235 {
"reservationGraphGeneration", std::to_string(reservation.graphGeneration)},
236 {
"claimGeneration", std::to_string(reservation.claimGeneration)},
237 {
"slot",
static_cast<std::int64_t
>(reservation.slot)},
238 {
"agentId", std::to_string(reservation.occupant.agentId.value())},
239 {
"executionId", std::to_string(reservation.occupant.executionId.value())},
248 "execution.candidate", {},
"climbing.snapshot"));
250 std::uint64_t world = 0,
body = 0,
shape = 0, definitionGeneration = 1;
251 std::int64_t bodyId = 0,
shapeId = 0, ignoredBodyId = 0,
score = 0,
kind = 0, support = 0;
252 std::int64_t supportShapeTag = 0, supportMaterialId = 0, probeRecipe = 0;
260 (
field(*
object,
"definitionGeneration") &&
261 !
readUint64String(*
object,
"definitionGeneration", definitionGeneration)) ||
264 !
readInt64(*
object,
"obstacleBodyId", bodyId) || bodyId < std::numeric_limits<int>::min() ||
265 bodyId > std::numeric_limits<int>::max() || !
readInt64(*
object,
"obstacleShapeId",
shapeId) ||
266 shapeId < std::numeric_limits<int>::min() ||
shapeId > std::numeric_limits<int>::max() ||
267 !
readInt64(*
object,
"ignoredBodyId", ignoredBodyId) || ignoredBodyId < std::numeric_limits<int>::min() ||
268 ignoredBodyId > std::numeric_limits<int>::max() || !readVec(*
object,
"frontPoint",
result.frontPoint) ||
269 !readVec(*
object,
"topPoint",
result.topPoint) || !readVec(*
object,
"landingFeet",
result.landingFeet) ||
270 !readVec(*
object,
"surfaceNormal",
result.surfaceNormal) ||
271 !readVec(*
object,
"surfaceTangent",
result.surfaceTangent) ||
272 !readVec(*
object,
"leftHandAnchor",
result.leftHandAnchor) ||
273 !readVec(*
object,
"rightHandAnchor",
result.rightHandAnchor) ||
274 !readVec(*
object,
"bodyLocalTop",
result.bodyLocalTop) ||
275 !readVec(*
object,
"bodyLocalLanding",
result.bodyLocalLanding) || !heightValue ||
279 !
readInt64(*
object,
"support", support) ||
283 "execution.candidate", {},
"climbing.snapshot"));
284 if ((snapshotVersion >= 4 && (!depthValue || !gapValue || !clearanceValue || !slopeValue || !curvatureValue ||
285 !
field(*
object,
"supportShapeTag") || !
field(*
object,
"supportMaterialId") ||
286 !
field(*
object,
"probeRecipe"))) ||
287 (depthValue && !numericFloat(*depthValue,
result.obstacleDepth)) ||
288 (gapValue && !numericFloat(*gapValue,
result.gapDistance)) ||
289 (clearanceValue && !numericFloat(*clearanceValue,
result.clearanceHeight)) ||
290 (slopeValue && !numericFloat(*slopeValue,
result.slopeRadians)) ||
291 (curvatureValue && !numericFloat(*curvatureValue,
result.curvature)) ||
292 (
field(*
object,
"supportShapeTag") && !
readInt64(*
object,
"supportShapeTag", supportShapeTag)) ||
293 supportShapeTag < std::numeric_limits<int>::min() || supportShapeTag > std::numeric_limits<int>::max() ||
294 (
field(*
object,
"supportMaterialId") && !
readInt64(*
object,
"supportMaterialId", supportMaterialId)) ||
295 supportMaterialId < std::numeric_limits<int>::min() ||
296 supportMaterialId > std::numeric_limits<int>::max() ||
297 (
field(*
object,
"probeRecipe") && !
readInt64(*
object,
"probeRecipe", probeRecipe)) || probeRecipe < 0 ||
301 "execution.candidate", {},
"climbing.snapshot"));
302 result.definitionGeneration = definitionGeneration;
306 result.obstacleBodyId =
static_cast<int>(bodyId);
308 result.ignoredBodyId =
static_cast<int>(ignoredBodyId);
311 result.supportShapeTag =
static_cast<int>(supportShapeTag);
312 result.supportMaterialId =
static_cast<int>(supportMaterialId);
330 {
"phase",
eve::Value(std::string(phaseName(phase_)))},
332 {
"definitionGeneration",
eve::Value(std::to_string(definitionGeneration_))},
333 {
"profile", std::move(profile).takeValue()},
334 {
"previousActionId",
eve::Value(previousActionId_)},
335 {
"nextExecutionId",
eve::Value(std::to_string(nextExecutionId_))},
336 {
"pendingEvents", eventArrayValue(pendingEvents_)}};
344 {
"executionId", std::to_string(execution_->executionId.value())},
345 {
"definitionGeneration", std::to_string(execution_->definitionGeneration)},
346 {
"action", std::move(
action).takeValue()},
347 {
"candidate", candidateValue(execution_->candidate)},
348 {
"startFeet", vecValue(execution_->startFeet)},
349 {
"currentFeet", vecValue(execution_->currentFeet)},
350 {
"lastPlannedFeet", vecValue(execution_->lastPlannedFeet)},
351 {
"elapsedNs", execution_->elapsed.nanoseconds()},
352 {
"durationNs", execution_->duration.nanoseconds()},
353 {
"lastTick", std::to_string(execution_->lastTick.value())},
354 {
"velocity", vecValue(execution_->velocity)},
355 {
"accumulatedResidual", vecValue(execution_->accumulatedResidual)},
356 {
"horizontalWarpUsed", execution_->horizontalWarpUsed},
357 {
"verticalWarpUsed", execution_->verticalWarpUsed},
358 {
"facingWarpUsed", execution_->facingWarpUsed},
359 {
"leftContactEmitted", execution_->leftContactEmitted},
360 {
"rightContactEmitted", execution_->rightContactEmitted},
361 {
"landContactReleased", execution_->landContactReleased},
362 {
"compactCollisionActive", execution_->compactCollisionActive},
363 {
"branchWindowOpen", execution_->branchWindowOpen},
364 {
"anchor", anchorValue(execution_->anchorGraph, execution_->anchorNode,
365 execution_->anchorReservation)},
369 execution_->sourceAnchorNode
371 {
"nodeId", execution_->sourceAnchorNode->nodeId},
372 {
"generation", std::to_string(execution_->sourceAnchorNode->graphGeneration)}})
383 std::string schemaId;
385 std::string phaseText;
386 std::string terminalCode;
387 std::string candidatePreviousActionId;
388 std::uint64_t candidateNextExecutionId = 1;
389 std::uint64_t candidateDefinitionGeneration = definitionGeneration_;
390 if (!readString(*
root,
"schemaId", schemaId) || schemaId != SnapshotSchemaId ||
391 !readInt64(*
root,
"schemaVersion",
version) || version < 0 || version > SnapshotSchemaVersion ||
392 !readString(*
root,
"phase", phaseText) ||
393 (
version >= 1 && !readString(*
root,
"terminalCode", terminalCode))) {
394 if (
version > SnapshotSchemaVersion)
396 "climbing.restore.version_unsupported",
397 "schemaVersion", {},
"climbing.snapshot"));
399 "invalid climbing runtime snapshot envelope", {}, {},
400 "climbing.snapshot"));
402 if (
version >= 4 && !readString(*
root,
"previousActionId", candidatePreviousActionId))
404 "invalid previous climbing action id",
405 "previousActionId", {},
"climbing.snapshot"));
406 if (field(*
root,
"nextExecutionId") && !readUint64String(*
root,
"nextExecutionId", candidateNextExecutionId))
408 "invalid next climbing execution id",
409 "nextExecutionId", {},
"climbing.snapshot"));
410 if (field(*
root,
"definitionGeneration") &&
411 (!readUint64String(*
root,
"definitionGeneration", candidateDefinitionGeneration) ||
412 candidateDefinitionGeneration == 0))
414 "invalid climbing definition generation",
415 "definitionGeneration", {},
"climbing.snapshot"));
420 candidateProfile = std::move(decodedProfile).takeValue();
423 if (!readPhase(phaseText, candidatePhase))
429 "runtime snapshot execution field is required",
430 "execution", {},
"climbing.snapshot"));
431 std::optional<Execution> candidateExecution;
432 if (!executionValue->
isNull()) {
436 if (!
state || !actionValue || !candidateValueField)
438 "invalid climbing execution object",
"execution",
439 {},
"climbing.snapshot"));
442 auto candidate = readCandidate(*candidateValueField,
version);
446 std::uint64_t executionDefinitionGeneration = candidateDefinitionGeneration;
449 "invalid climbing execution id",
450 "execution.executionId", {},
"climbing.snapshot"));
452 if (field(*
state,
"definitionGeneration") &&
453 (!readUint64String(*
state,
"definitionGeneration", executionDefinitionGeneration) ||
454 executionDefinitionGeneration == 0))
457 "execution.definitionGeneration", {},
"climbing.snapshot"));
458 parsed.definitionGeneration = executionDefinitionGeneration;
459 parsed.action = std::move(
action).takeValue();
460 parsed.candidate = std::move(candidate).takeValue();
461 std::int64_t elapsedNs = 0, durationNs = 0;
462 std::uint64_t lastTick = 0;
463 if (parsed.action.id != parsed.candidate.actionId ||
464 (field(*
state,
"definitionGeneration") &&
465 parsed.candidate.definitionGeneration != parsed.definitionGeneration) ||
466 !readVec(*
state,
"startFeet", parsed.startFeet) ||
467 !readVec(*
state,
"currentFeet", parsed.currentFeet) ||
468 !readVec(*
state,
"lastPlannedFeet", parsed.lastPlannedFeet) || !readInt64(*
state,
"elapsedNs", elapsedNs) ||
469 elapsedNs < 0 || !readInt64(*
state,
"durationNs", durationNs) || durationNs <= 0 ||
470 !readUint64String(*
state,
"lastTick", lastTick) || !readVec(*
state,
"velocity", parsed.velocity) ||
471 !readVec(*
state,
"accumulatedResidual", parsed.accumulatedResidual) ||
472 !readOptionalFloat(*
state,
"horizontalWarpUsed", parsed.horizontalWarpUsed) ||
473 !readOptionalFloat(*
state,
"verticalWarpUsed", parsed.verticalWarpUsed) ||
474 !readOptionalFloat(*
state,
"facingWarpUsed", parsed.facingWarpUsed) || parsed.horizontalWarpUsed < 0.f ||
475 parsed.verticalWarpUsed < 0.f || parsed.facingWarpUsed < 0.f ||
476 !readBool(*
state,
"leftContactEmitted", parsed.leftContactEmitted,
false,
version != 0) ||
477 !readBool(*
state,
"rightContactEmitted", parsed.rightContactEmitted,
false,
version != 0) ||
478 !readBool(*
state,
"landContactReleased", parsed.landContactReleased,
false,
false) ||
479 !readBool(*
state,
"compactCollisionActive", parsed.compactCollisionActive,
false,
false) ||
480 !readBool(*
state,
"branchWindowOpen", parsed.branchWindowOpen,
false,
false))
483 {},
"climbing.snapshot"));
485 if (
version >= 3 && !anchorField)
487 "runtime snapshot anchor field is required",
488 "execution.anchor", {},
"climbing.snapshot"));
489 if (anchorField && !anchorField->
isNull()) {
493 "execution.anchor", {},
"climbing.snapshot"));
495 std::uint64_t graphHandle = 0, graphOwnerEpoch = 0, nodeGraphGeneration = 0;
496 std::uint64_t reservationId = 0, reservationGraphGeneration = 0, claimGeneration = 0;
497 std::uint64_t agentId = 0, occupantExecutionId = 0;
498 std::int64_t
slot = -1;
499 std::string graphId,
nodeId;
500 if (!anchor || !readUint64String(*anchor,
"graphHandle", graphHandle) ||
501 !readUint64String(*anchor,
"graphOwnerEpoch", graphOwnerEpoch) || graphOwnerEpoch == 0 ||
502 !readString(*anchor,
"graphId", graphId) || graphId.empty() ||
503 !readString(*anchor,
"nodeId",
nodeId) ||
nodeId.empty() ||
504 !readUint64String(*anchor,
"nodeGraphGeneration", nodeGraphGeneration) ||
505 nodeGraphGeneration == 0 || !readUint64String(*anchor,
"reservationId", reservationId) ||
506 reservationId == 0 ||
507 !readUint64String(*anchor,
"reservationGraphGeneration", reservationGraphGeneration) ||
508 reservationGraphGeneration == 0 ||
509 !readUint64String(*anchor,
"claimGeneration", claimGeneration) || claimGeneration == 0 ||
510 !readInt64(*anchor,
"slot",
slot) ||
slot < 0 ||
511 slot >
static_cast<std::int64_t
>(std::numeric_limits<std::uint32_t>::max()) ||
512 !readUint64String(*anchor,
"agentId", agentId) || agentId == 0 ||
513 !readUint64String(*anchor,
"executionId", occupantExecutionId) || occupantExecutionId == 0)
516 "execution.anchor", {},
"climbing.snapshot"));
518 parsed.anchorGraph.ownerEpoch = graphOwnerEpoch;
519 parsed.anchorNode = {std::move(graphId), std::move(
nodeId), nodeGraphGeneration};
521 claimGeneration, parsed.anchorNode.nodeId,
static_cast<std::uint32_t
>(
slot),
523 if (!parsed.anchorGraph.isValid() || nodeGraphGeneration != reservationGraphGeneration ||
524 parsed.executionId != parsed.anchorReservation.occupant.executionId)
526 "runtime anchor identities are inconsistent",
527 "execution.anchor", {},
"climbing.snapshot"));
530 if (
version >= 5 && !sourceField)
533 "execution.sourceAnchor", {},
"climbing.snapshot"));
534 if (sourceField && !sourceField->
isNull()) {
537 if (
version < 5 || !
object || !parsed.anchorGraph.isValid() ||
538 !readString(*
object,
"graphId",
source.graphId) || !readString(*
object,
"nodeId",
source.nodeId) ||
539 source.nodeId.empty() || !readUint64String(*
object,
"generation",
source.graphGeneration) ||
540 source.graphId != parsed.anchorNode.graphId ||
541 source.graphGeneration != parsed.anchorNode.graphGeneration)
544 "execution.sourceAnchor", {},
"climbing.snapshot"));
545 parsed.sourceAnchorNode = std::move(
source);
550 if (parsed.duration != parsed.action.duration || parsed.elapsed > parsed.duration)
552 "execution timing disagrees with pinned action",
553 "execution.durationNs", {},
"climbing.snapshot"));
554 const bool graphBound = parsed.anchorGraph.isValid();
555 if (world.runtimeHandle() != parsed.candidate.world || !world.findBody(parsed.candidate.obstacleBody) ||
556 (!graphBound && !world.findShape(parsed.candidate.obstacleShape)))
558 "climbing restore target link is stale",
559 "execution.candidate", {},
"climbing.snapshot"));
561 auto graph = Climbing::resolveAnchorGraph(parsed.anchorGraph);
562 if (!
graph.isBound() ||
graph->body() != parsed.candidate.obstacleBody)
565 "execution.anchor.graph", {},
"climbing.snapshot"));
566 auto resolved =
graph->resolveNode(world, parsed.anchorNode);
569 if (parsed.sourceAnchorNode) {
570 auto source =
graph->resolveNode(world, *parsed.sourceAnchorNode);
573 auto reservation =
graph->validateReservation(parsed.anchorReservation);
577 candidateExecution = std::move(parsed);
579 if (activePhase(candidatePhase) != candidateExecution.has_value())
581 "active phase and execution presence disagree",
582 "execution", {},
"climbing.snapshot"));
583 if (!field(*
root,
"nextExecutionId")) {
584 candidateNextExecutionId = candidateExecution ? candidateExecution->executionId.value() + 1 : 1;
586 if (candidateNextExecutionId == 0 ||
587 (candidateExecution && (candidateExecution->executionId.isZero() ||
590 "next execution id must follow the restored execution",
591 "nextExecutionId", {},
"climbing.snapshot"));
592 std::vector<ClimbingEvent> candidateEvents;
593 if (
const eve::Value* eventValue = field(*
root,
"pendingEvents")) {
594 auto parsedEvents = readEvents(*eventValue, candidateNextExecutionId);
596 candidateEvents = std::move(parsedEvents).takeValue();
599 "runtime snapshot pendingEvents field is required",
600 "pendingEvents", {},
"climbing.snapshot"));
603 if (execution_ && execution_->anchorGraph.isValid() &&
604 (!candidateExecution || execution_->anchorGraph != candidateExecution->anchorGraph ||
605 execution_->anchorReservation.id != candidateExecution->anchorReservation.id ||
606 execution_->anchorReservation.claimGeneration != candidateExecution->anchorReservation.claimGeneration))
609 {},
"climbing.snapshot"));
610 if (candidateExecution && candidateExecution->anchorGraph.isValid()) {
611 const bool alreadyOwned = execution_ && execution_->anchorGraph == candidateExecution->anchorGraph &&
612 execution_->anchorReservation.id == candidateExecution->anchorReservation.id &&
613 execution_->anchorReservation.claimGeneration ==
614 candidateExecution->anchorReservation.claimGeneration;
616 auto graph = Climbing::resolveAnchorGraph(candidateExecution->anchorGraph);
617 if (!
graph.isBound())
620 "execution.anchor.graph", {},
"climbing.snapshot"));
621 auto claimed =
graph->restoreReservation(candidateExecution->anchorReservation);
623 candidateExecution->anchorReservation = std::move(claimed).takeValue();
628 phase_ = candidatePhase;
629 profile_ = std::move(candidateProfile);
630 terminalCode_ = std::move(terminalCode);
631 execution_ = std::move(candidateExecution);
632 previousActionId_ = std::move(candidatePreviousActionId);
633 nextExecutionId_ = candidateNextExecutionId;
634 definitionGeneration_ = candidateDefinitionGeneration;
635 validatedProfileGeneration_.reset();
636 pendingEvents_ = std::move(candidateEvents);
637 validatedAnimationActions_.clear();
638 lastCandidates_.clear();
639 lastDebugQueries_.clear();
640 lastEvidence_.clear();
641 motionEvidence_.clear();
eve::action::ActionExecutionId executionId
Versioned, lossless codecs for climbing definitions.
攀爬事件 ↔ eve::Value 的**唯一**映射。
Deterministic climbing/parkour planning and capsule-constrained execution.
std::map< std::string, std::vector< std::string > > graph
std::vector< particles::ParticleRecordEvent > events
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
static constexpr Duration fromNanoseconds(std::int64_t nanoseconds) noexcept
Construct an exact duration from nanoseconds.
Move-only operation result carrying either a value or Status.
static Result success(T value)
Construct a successful result owning value.
static Result failure(Status status)
Construct a failed result from a structured status.
static constexpr RuntimeHandle fromPacked(std::uint64_t value) noexcept
Reconstructs a handle from an explicit packed boundary value.
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
The canonical owning dynamic value used by data-facing protocols.
std::map< std::string, Value > Object
std::vector< Value > Array
static Value array(Array value)
Compatibility factory for an array value.
bool isNull() const noexcept
Return true when this value is null.
const T * getIf() const noexcept
Return a typed pointer, or nullptr when the kind differs.
static Value object(Object value)
Compatibility factory for an object value.
static constexpr std::int64_t SnapshotSchemaVersion
Current runtime snapshot version; v3 is N-1 and historical v2/v1/v0 remain migratable.
eve::Result< eve::Value > snapshot() const
Captures deterministic runtime state; debug candidates and final bone poses are excluded.
static constexpr std::string_view SnapshotSchemaId
Stable schema id for owning runtime snapshots.
static constexpr std::size_t PendingEventCapacity
Hard bound for undelivered post-simulation events owned by one runtime.
constexpr std::uint64_t value() const noexcept
Returns the underlying value at an explicit protocol boundary.
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Box3D rigid-body world. Script coordinates are meters (Box3D native), unlike 2D World which uses pixe...
const Value * field(const Value &value, const char *key)
Borrow an optional object field.
eve::detail::StrongUint64< detail::ClimbingExecutionIdTag > ClimbingExecutionId
Stable non-zero identity assigned when a climbing selection transaction commits.
Value climbingEventArrayValue(std::span< const ClimbingEvent > events)
一批事件 → Value 数组,顺序与传入一致。
eve::Result< ClimbingActionDefinition > decodeClimbingActionDefinition(const eve::Value &value)
Decode and validate one action without partially mutating a registry.
eve::Result< eve::Value > encodeClimbingProfileDefinition(const ClimbingProfileDefinition &profile)
Encode one validated profile and all nested actions into canonical schema v4 data.
eve::Result< ClimbingProfileDefinition > decodeClimbingProfileDefinition(const eve::Value &value)
Decode and validate an owning profile candidate transactionally.
ClimbingPhase
Execution lifecycle visible to gameplay and animation adapters.
EventKindParse parseClimbingEventKind(std::string_view name, ClimbingEventKind &out)
名字 → ClimbingEventKind(climbingEventKindName 的严格逆)。
eve::Result< eve::Value > encodeClimbingActionDefinition(const ClimbingActionDefinition &action)
Encode one validated action into canonical schema v4 data.
HangSupport
Evidence describing whether a hanging pose has foot support.
eve::script::RuntimeHandleRef< ClimbingAnchorGraphHandleTag > ClimbingAnchorGraphHandleRef
Generation- and module-epoch-qualified anchor graph instance reference.
ClimbingActionKind
Data-driven action family; stable action identity remains the definition id.
ClimbingProbeRecipe
Semantic query family used to produce action candidates.
bool readString(const eve::Value::Object &object, const char *name, std::string &output)
Result< std::int64_t > readInt64(const Value::Object &object, std::string_view name)
Reads a required signed decimal integer string.
Result< bool > readBool(const Value::Object &object, std::string_view name)
Reads a required boolean.
bool readUint64String(const eve::Value::Object &object, const char *name, std::uint64_t &output)
std::string_view phaseName(BattlePhase phase) noexcept
Return the stable protocol spelling of a battle phase.
Build metadata (engine git commit, build time, third-party version).
Result< float > readFiniteFloatValue(const Value &value)
Convert an Integer or Double to a finite Float after validating its source range.
Result< bool > readBoolValue(const Value &value)
Read a Bool without coercing integers, strings or other kinds.
Result< json::UnsignedIntegerScan > scanUnsignedStringMember(const Value::Object &object, std::string_view name)
Scan a required nonempty decimal-string field using from_chars semantics.
detail::StrongUint64< detail::SimulationTickTag > SimulationTick
Deterministic simulation time step; it is not wall-clock time.
Result< std::string > readStringMember(const Value::Object &object, std::string_view name)
Read a required string field, including an empty string, as an owning value.
Result< std::int64_t > readInt64Value(const Value &value)
Read an Int64 without narrowing or numeric coercion.
Generation-qualified reference to an authored anchor node.
Runtime profile controlling capsule geometry and probe limits.