载入中...
搜索中...
未找到
CombatCharacterPose.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
7#include "combat/MeleeHit.h"
8
9namespace eve::combat {
10
19public:
21 explicit CombatCharacterPoseSource(const CombatCharacterRuntime& characters, double chestHeight = 1.0) noexcept
23 : characters_(&characters), chestHeight_(chestHeight) {}
24
27 [[nodiscard]] Result<MeleePose> pose(SubjectRef subject, std::string_view hitboxId) const override;
28
29private:
30 const CombatCharacterRuntime* characters_ = nullptr;
31 double chestHeight_ = 1.0;
32};
33
34} // namespace eve::combat
int subject
Definition AnimSmr.cpp:163
eve::EntitySpatialPose pose
3D action-combat character controller.
#define EVENGINE_API_BACKENDS
Definition Export.h:108
Deterministic bone-agnostic melee hitbox/hurtbox sweep.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Strong, domain-neutral reference to a runtime subject.
Definition SubjectRef.h:26
IMeleePoseSource that samples CombatCharacterRuntime position and yaw.
CombatCharacterPoseSource(const CombatCharacterRuntime &characters, double chestHeight=1.0) noexcept
Borrow a character runtime that must outlive this adapter.
Owner-thread 3D character authority for action combat.
Optional pose resolver for active hitbox ids.
Definition MeleeHit.h:112