武器逻辑接口:注册到 WeaponSystem 的可插拔行为。
更多...
#include <WeaponLogic.h>
武器逻辑接口:注册到 WeaponSystem 的可插拔行为。
在文件 WeaponLogic.h 第 22 行定义.
◆ ~IWeaponLogic()
| virtual eve::weapon::IWeaponLogic::~IWeaponLogic |
( |
| ) |
|
|
virtualdefault |
◆ begin()
◆ canFire()
| virtual bool eve::weapon::IWeaponLogic::canFire |
( |
const WeaponEntity & |
w | ) |
const |
|
pure virtual |
◆ channel()
◆ end()
◆ fire()
执行攻击效果:生成投射物 / 命中判定等。资源已由系统扣除。
◆ name()
| virtual const char * eve::weapon::IWeaponLogic::name |
( |
| ) |
const |
|
pure virtual |
稳定名字("hitscan" / "projectile" / "melee" / 自定义名)。
- 返回
- Borrowed non-null pointer to immutable provider-owned/static text. @ownership The logic implementation owns the storage; callers must not free it. @lifetime Valid while the implementation is registered; copy it if retaining it. @thread Query on the weapon registry thread unless the implementation documents otherwise. @reentrancy Must not invoke callbacks or mutate the registry.
被这些函数引用 eve::weapon::WeaponSystem::registerLogic().
◆ update()
| virtual void eve::weapon::IWeaponLogic::update |
( |
WeaponEntity & |
w, |
|
|
float |
dt |
|
) |
| |
|
pure virtual |
该类的文档由以下文件生成: