载入中...
搜索中...
未找到
eve::vehicle::VehicleEntity类 参考

载具实体:数据全部在组件里,行为在 VehicleSystem。 更多...

#include <VehicleTypes.h>

类 eve::vehicle::VehicleEntity 继承关系图:

类

struct  Attributes
 Canonical selected combat attributes for this vehicle. 更多...
 
struct  Definition
 模板指针(Vehicle 模块注册表持有,实体不拥有)。 更多...
 
struct  DefinitionBinding
 Canonical definition identity projected onto this ECS entity. 更多...
 
struct  Flags
 通用标志位。 更多...
 
struct  Health
 生命值(Phase 4 伤害管线增强)。 更多...
 
struct  Identity
 稳定实例 id / 模板 id / 阵营。 更多...
 
struct  Input
 每帧输入(命令系统 / 驾驶者写入,移动模型消费)。 更多...
 
struct  Motion
 2D 运动状态(kinematic 直接持有;物理模式由 body 回写)。 更多...
 
struct  Mounts
 武器挂点槽位列表(不拥有挂点;weapon 模块管理生命周期)。 更多...
 
struct  MountSlot
 一个挂点槽位:挂点实体 + 瞄准模式。 更多...
 
struct  Orders
 Vehicle order lifecycle adapter and compatibility projection. 更多...
 
struct  PhysicsBody
 跨帧物理绑定;不透明实现持有 generation link 和弱 world 生命周期。 更多...
 
struct  Seats
 座位列表(FPS 面)。 更多...
 
struct  SeatSlot
 座位槽位(运行时,与模板 seats 一一对应)。 更多...
 
struct  SuspensionState
 悬架运行时状态(与模板 wheels 一一对应)。 更多...
 

Public 成员函数

void release () override
 Entity.
 

静态 Public 成员函数

static VehicleEntity * createVehicle ()
 创建并触摸全部组件。
 

详细描述

载具实体:数据全部在组件里,行为在 VehicleSystem。

在文件 VehicleTypes.h 第 176 行定义.

成员函数说明

◆ createVehicle()

VehicleEntity * eve::vehicle::VehicleEntity::createVehicle ( )
static

创建并触摸全部组件。

返回
Borrowed nullable pointer to an ECS-owned VehicleEntity. @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 EntityHandle across frames. @thread Call on the owning ECS/simulation thread. @reentrancy Does not invoke user callbacks; do not re-enter structural ECS mutation while using the result.

在文件 Vehicle.cpp 第 99 行定义.

引用了 v.

被这些函数引用 eve::vehicle::Vehicle::newVehicle().

◆ release()

void eve::vehicle::VehicleEntity::release ( )
inlineoverride

Entity.

Release.

在文件 VehicleTypes.h 第 182 行定义.


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