载入中...
搜索中...
未找到
eve::weapon::WeaponEntity类 参考
武器实体:数据全部在组件里,行为在 WeaponSystem。 更多...
#include <WeaponTypes.h>
类 eve::weapon::WeaponEntity 继承关系图:
类 | |
| struct | Aim |
| 炮口朝向(度)。turnSpeed 0 = 立即到位。 更多... | |
| struct | Attributes |
| Canonical optional mana/stamina state for non-ammo weapons. 更多... | |
| struct | Definition |
Typed definition projection used by legacy WeaponSystem code. @ownership Borrowed through def when owned is empty. When owned is present, this component owns the immutable projection and def points into it. @lifetime The borrowed pointer remains valid until this component is replaced or its owner is destroyed. Callers must not retain it across a definition projection swap. 更多... | |
| struct | DefinitionBinding |
| Canonical definition identity and reload policy projected to ECS. @ownership The common DefinitionRegistry owns definition data; this component only stores identity and policy. @lifetime The identity is valid with this entity and becomes stale when the registry generation is replaced or removed. 更多... | |
| struct | Identity |
| 稳定实例 id / 模板 id / 游戏侧拥有者。 更多... | |
| struct | State |
| 触发资源 / 冷却 / 装填 / 阶段机运行时状态。 更多... | |
Public 成员函数 | |
| void | release () override |
| Entity. | |
静态 Public 成员函数 | |
| static WeaponEntity * | createWeapon () |
| 创建并触摸全部组件。 | |
详细描述
武器实体:数据全部在组件里,行为在 WeaponSystem。
在文件 WeaponTypes.h 第 276 行定义.
成员函数说明
◆ createWeapon()
|
static |
创建并触摸全部组件。
- 返回
- Borrowed nullable pointer to an ECS-owned weapon. @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 第 129 行定义.
引用了 w.
被这些函数引用 eve::weapon::Weapon::newWeapon().
◆ release()
|
inlineoverride |
该类的文档由以下文件生成:
- src/modules/weapon/WeaponTypes.h
- src/modules/weapon/Weapon.cpp