载入中...
搜索中...
未找到
ClimbingEventValue.h
浏览该文件的文档.
1#pragma once
2
14#include "common/Export.h"
15#include "climbing/Climbing.h"
16
17#include "common/Value.h"
18
19#include <cstdint>
20#include <span>
21#include <string_view>
22
23namespace eve::climbing {
24
26inline constexpr std::uint8_t kClimbingEventKindCount = 11;
27
29enum class EventKindParse : std::uint8_t {
30 Parsed,
31 Unknown
32};
33
42
50
56[[nodiscard]] EVENGINE_API_DOMAINS Value climbingEventValue(const ClimbingEvent& event);
57
59[[nodiscard]] EVENGINE_API_DOMAINS Value climbingEventArrayValue(std::span<const ClimbingEvent> events);
60
61} // namespace eve::climbing
Deterministic climbing/parkour planning and capsule-constrained execution.
std::string name
Definition ECS.cpp:154
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::vector< particles::ParticleRecordEvent > events
ScriptStructure out
std::string kind
Owning, renderer-independent dynamic values.
The canonical owning dynamic value used by data-facing protocols.
Definition Value.h:31
Value climbingEventArrayValue(std::span< const ClimbingEvent > events)
一批事件 → Value 数组,顺序与传入一致。
std::string_view climbingEventKindName(ClimbingEventKind kind)
事件种类的稳定脚本名(snake_case,例如 "anchor_transition_started")。
EventKindParse
事件种类名的解析结果。
@ Unknown
不认识这个名字;out 未被改动(不猜默认值)。
@ Parsed
name 认识,out 已写入。
constexpr std::uint8_t kClimbingEventKindCount
ClimbingEventKind 的取值个数(0..kClimbingEventKindCount-1)。
EventKindParse parseClimbingEventKind(std::string_view name, ClimbingEventKind &out)
名字 → ClimbingEventKind(climbingEventKindName 的严格逆)。
ClimbingEventKind
Stable semantic event emitted by the authoritative climbing lifecycle.
Definition Climbing.h:488
Value climbingEventValue(const ClimbingEvent &event)
一个事件 → {kind, actionId, tick, executionId, metadata}。