Catalog entry that maps a timeline hitbox resource id onto geometry. 更多...
#include <MeleeHit.h>
Public 成员函数 | |
| Result< void > | validate () const |
| Validate id, shape and finite damage. | |
Public 属性 | |
| std::string | hitboxId |
| MeleeShape | shape |
| MeleePoint3 | localOffset |
| Local offset from the pose provided by the pose source. | |
| double | healthDamage = 0.0 |
| double | poiseDamage = 0.0 |
| std::string | damageType = "Damage.Physical.Slash" |
| double | knockbackSpeed = 0.0 |
| Horizontal impulse magnitude along the contact normal (attacker → target). | |
| double | knockbackLift = 0.0 |
| Upward impulse added on hit; independent of the contact normal. | |
详细描述
Catalog entry that maps a timeline hitbox resource id onto geometry.
在文件 MeleeHit.h 第 67 行定义.
成员函数说明
◆ validate()
| Result< void > eve::combat::MeleeHitboxDefinition::validate | ( | ) | const |
Validate id, shape and finite damage.
在文件 MeleeHit.cpp 第 153 行定义.
引用了 damageType, eve::Diagnostic::error(), eve::Result< T >::failure(), healthDamage, hitboxId, eve::InvalidArgument, knockbackLift, knockbackSpeed, localOffset, poiseDamage, shape , 以及 eve::combat::MeleeShape::validate().
类成员变量说明
◆ damageType
| std::string eve::combat::MeleeHitboxDefinition::damageType = "Damage.Physical.Slash" |
在文件 MeleeHit.h 第 74 行定义.
被这些函数引用 validate().
◆ healthDamage
| double eve::combat::MeleeHitboxDefinition::healthDamage = 0.0 |
在文件 MeleeHit.h 第 72 行定义.
被这些函数引用 validate().
◆ hitboxId
| std::string eve::combat::MeleeHitboxDefinition::hitboxId |
在文件 MeleeHit.h 第 68 行定义.
被这些函数引用 validate().
◆ knockbackLift
| double eve::combat::MeleeHitboxDefinition::knockbackLift = 0.0 |
Upward impulse added on hit; independent of the contact normal.
在文件 MeleeHit.h 第 78 行定义.
被这些函数引用 validate().
◆ knockbackSpeed
| double eve::combat::MeleeHitboxDefinition::knockbackSpeed = 0.0 |
Horizontal impulse magnitude along the contact normal (attacker → target).
在文件 MeleeHit.h 第 76 行定义.
被这些函数引用 validate().
◆ localOffset
| MeleePoint3 eve::combat::MeleeHitboxDefinition::localOffset |
Local offset from the pose provided by the pose source.
在文件 MeleeHit.h 第 71 行定义.
被这些函数引用 validate().
◆ poiseDamage
| double eve::combat::MeleeHitboxDefinition::poiseDamage = 0.0 |
在文件 MeleeHit.h 第 73 行定义.
被这些函数引用 validate().
◆ shape
| MeleeShape eve::combat::MeleeHitboxDefinition::shape |
在文件 MeleeHit.h 第 69 行定义.
被这些函数引用 validate().
该结构体的文档由以下文件生成:
- src/modules/combat/MeleeHit.h
- src/modules/combat/MeleeHit.cpp