载入中...
搜索中...
未找到
eve::weapon::AmmoPoolEntity类 参考
共享弹药池实体:多把武器共用的备用弹药,装填时从池中取。 更多...
#include <WeaponTypes.h>
类 eve::weapon::AmmoPoolEntity 继承关系图:
类 | |
| struct | Identity |
| 弹药池 id / 弹药类型("pistol" | "rifle" | "shell"…)。 更多... | |
| struct | State |
| 当前存量 / 上限(<0 = 无限)。 更多... | |
Public 成员函数 | |
| void | release () override |
| Entity. | |
静态 Public 成员函数 | |
| static AmmoPoolEntity * | createPool () |
| 创建并触摸全部组件。 | |
详细描述
共享弹药池实体:多把武器共用的备用弹药,装填时从池中取。
在文件 WeaponTypes.h 第 481 行定义.
成员函数说明
◆ createPool()
|
static |
创建并触摸全部组件。
- 返回
- Borrowed nullable pointer to an ECS-owned ammunition pool. @ownership The ECS world owns the entity; callers must release through ECS and never delete it. @lifetime Valid until entity/world destruction; retain the generation-qualified handle across frames. @thread Call on the owning ECS thread. @reentrancy Creation invokes no user callbacks; do not re-enter structural ECS mutation.
在文件 Weapon.cpp 第 155 行定义.
引用了 p.
被这些函数引用 eve::weapon::Weapon::newAmmoPool().
◆ release()
|
inlineoverride |
该类的文档由以下文件生成:
- src/modules/weapon/WeaponTypes.h
- src/modules/weapon/Weapon.cpp