载入中...
搜索中...
未找到
VehicleTypes.h
浏览该文件的文档.
380 virtual float modifyDamage(VehicleEntity& v, float amount, const std::string& zone, int sourceId) = 0;
Owner-aware canonical attribute state shared by gameplay adapters.
Common identity and hot-reload contract for typed runtime instances.
Monotonic state revision for concurrency and change checks.
Canonical selected-attribute storage with owner and revision checks.
Definition AttributeProjection.h:55
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
virtual float modifyDamage(VehicleEntity &v, float amount, const std::string &zone, int sourceId)=0
返回修正后的伤害(默认原值;装甲区倍率在修饰器之后应用)。
virtual ~IVehicleDamageModifier()=default
Releases IVehicleDamageModifier resources.
@ RebuildInstance
Let the consumer atomically construct a new state from the new definition.
const char * vehicleOrderTypeName(VehicleOrderType type)
命令类型的字符串名("move" | "attack_move" | ...)。
Definition Vehicle.cpp:85
std::ostream & operator<<(std::ostream &stream, VehicleOrderType type)
Writes the stable vehicle-order protocol name.
Definition VehicleTypes.h:55
@ OrderCompleted
@ Destroyed
@ AttackMove
载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
Definition RTSArchetype.h:10
Canonical identity carried by every typed runtime instance.
Definition DefinitionRuntime.h:87
Suspension and tire parameters owned by the immutable vehicle definition.
Definition VehicleTypes.h:116
float tireFriction
Tire friction coefficient and longitudinal / cornering stiffness in N.
Definition VehicleTypes.h:126
float supportAcceleration2D
Virtual support acceleration for top-down XY tires in m/s^2; zero means airborne. Independent of plan...
Definition VehicleTypes.h:134
float longitudinalStiffness
Definition VehicleTypes.h:126
float rollingResistance
Rolling-resistance coefficient and maximum brake torque per wheel in Nm.
Definition VehicleTypes.h:128
float maxSteerAngle
Steering wheel deflection limit in radians, in [0, 1.4].
Definition VehicleTypes.h:130
float wheelInertia
Tire inertia in kg*m^2; all wheels use this definition value.
Definition VehicleTypes.h:124
std::vector< SuspensionWheel > wheels
Definition VehicleTypes.h:135
float corneringStiffness
Definition VehicleTypes.h:126
Wheel mount for 3D ray suspension or 2D top-down tire contact.
Definition VehicleTypes.h:102
float x
Local mount in meters: 3D uses +Y up; top-down 2D uses XY with z = 0.
Definition VehicleTypes.h:104
载具模板(registerVehiclesFromJson 注册,进程级注册表)。
Definition VehicleTypes.h:147
std::vector< ArmorZone > armorZones
Definition VehicleTypes.h:157
Canonical selected combat attributes for this vehicle.
Definition VehicleTypes.h:257
eve::attributes::AttributeProjection values
Definition VehicleTypes.h:258
Canonical definition identity projected onto this ECS entity.
Definition VehicleTypes.h:218
eve::definition::InstanceIdentity identity
Definition VehicleTypes.h:219
std::shared_ptr< const VehicleDefinition > owned
Immutable projection owner used by typed adapters.
Definition VehicleTypes.h:207
2D 运动状态(kinematic 直接持有;物理模式由 body 回写)。
Definition VehicleTypes.h:236
Vehicle order lifecycle adapter and compatibility projection.
Definition VehicleTypes.h:268
Orders(Orders &&) noexcept
Transfers the adapter and compatibility projection.
std::unique_ptr< VehicleOrderQueueAdapter > adapter
Definition VehicleTypes.h:272
std::vector< VehicleOrder > queue
Definition VehicleTypes.h:269
跨帧物理绑定;不透明实现持有 generation link 和弱 world 生命周期。
Definition VehicleTypes.h:305
std::shared_ptr< VehiclePhysicsBinding > binding
Definition VehicleTypes.h:306
WheelState public API.
Definition VehicleTypes.h:313
Completed wheel state in configured mount order, or the generated default layout order.
Definition VehicleTypes.h:311
std::vector< WheelState > wheels
Definition VehicleTypes.h:321
一条 Vehicle 领域命令(生命周期由 Vehicle order adapter 执行)。
Definition VehicleTypes.h:61