载入中...
搜索中...
未找到
MeleeHit.h
浏览该文件的文档.
121 [[nodiscard]] virtual Result<MeleePose> pose(SubjectRef subject, std::string_view hitboxId) const = 0;
146 [[nodiscard]] Result<void> setHurtboxPose(SubjectRef subject, std::string_view hurtboxId, MeleePose pose);
Renderer- and ruleset-neutral gameplay action pipeline.
Deterministic damage, poise, hit-reaction and knockback resolution.
Move-only, checked operation results for the common layer.
Stable reference to a runtime gameplay subject.
Common time values and an injectable deterministic simulation clock.
virtual ~IMeleePoseSource()=default
Releases IMeleePoseSource resources.
virtual Result< MeleePose > pose(SubjectRef subject, std::string_view hitboxId) const =0
Resolve the current world pose for one subject's active hitbox.
Owner-thread authority for hurtboxes, hitbox catalogs and sweep hits.
Definition MeleeHit.h:132
void setPoseSource(IMeleePoseSource &source) noexcept
Install a borrowed pose source that must outlive this runtime or be cleared.
Definition MeleeHit.h:135
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Definition ActionDamageSink.cpp:9
@ Capsule
Mutable combat state owned by the gameplay domain for one subject.
Definition Damage.h:37
Renderer/physics-neutral knockback impulse authored in world units.
Definition Damage.h:19
std::optional< action::ActionExecutionId > actionExecution
Definition MeleeHit.h:97
Catalog entry that maps a timeline hitbox resource id onto geometry.
Definition MeleeHit.h:67
double knockbackLift
Upward impulse added on hit; independent of the contact normal.
Definition MeleeHit.h:78
MeleePoint3 localOffset
Local offset from the pose provided by the pose source.
Definition MeleeHit.h:71
double knockbackSpeed
Horizontal impulse magnitude along the contact normal (attacker → target).
Definition MeleeHit.h:76
Body-part tag used for multipliers and debugging.
Definition MeleeHit.h:56
double yawRadians
Yaw radians around world +Y; pitch/roll are unused for v1 capsules.
Definition MeleeHit.h:49
Owning geometry definition referenced by a stable hitbox or hurtbox id.
Definition MeleeHit.h:36
Result< void > validate() const
Reject non-finite or non-positive dimensions.
Definition MeleeHit.cpp:125