载入中...
搜索中...
未找到
eve::weapon::WeaponMountEntity类 参考

武器挂点实体:可持有武器并限制旋转(炮塔 / 机枪座 / 固定挂架)。 更多...

#include <WeaponTypes.h>

类 eve::weapon::WeaponMountEntity 继承关系图:

类

struct  Identity
 挂点 id / 场景节点路径 / 类型("turret" | "pintle" | "fixed")。 更多...
 
struct  Limits
 旋转限位与射界(度)。 更多...
 
struct  State
 当前朝向(度)与挂载的武器(不拥有,模块负责两者生命周期)。 更多...
 

Public 成员函数

void release () override
 Entity.
 

静态 Public 成员函数

static WeaponMountEntity * createMount ()
 创建并触摸全部组件。
 

详细描述

武器挂点实体:可持有武器并限制旋转(炮塔 / 机枪座 / 固定挂架)。

在文件 WeaponTypes.h 第 384 行定义.

成员函数说明

◆ createMount()

WeaponMountEntity * eve::weapon::WeaponMountEntity::createMount ( )
static

创建并触摸全部组件。

返回
Borrowed nullable pointer to an ECS-owned mount. @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 第 139 行定义.

引用了 m.

被这些函数引用 eve::weapon::Weapon::newMount().

◆ release()

void eve::weapon::WeaponMountEntity::release ( )
inlineoverride

Entity.

Release.

在文件 WeaponTypes.h 第 390 行定义.


该类的文档由以下文件生成: