Mutable state owned by one typed weapon runtime instance. 更多...
#include <WeaponDefinitionRuntime.h>
Public 属性 | |
| Resource | resource |
| float | cooldown = 0.f |
| int | burstRemaining = 0 |
| float | burstTimer = 0.f |
| bool | jammed = false |
| AttackStage | stage = AttackStage::Idle |
| float | stageTimer = 0.f |
| float | currentSpread = 0.f |
| float | recoilPitch = 0.f |
| float | recoilYaw = 0.f |
| FireMode | selector = FireMode::Single |
| bool | aiming = false |
详细描述
Mutable state owned by one typed weapon runtime instance.
The target handle, staged request and shared ammo-pool pointer are transient ECS links and are intentionally not persisted here. The owning WeaponEntity remains responsible for those links; the stable firing/resource state below is the snapshot contract.
在文件 WeaponDefinitionRuntime.h 第 45 行定义.
类成员变量说明
◆ aiming
| bool eve::weapon::WeaponRuntimeState::aiming = false |
在文件 WeaponDefinitionRuntime.h 第 57 行定义.
◆ burstRemaining
| int eve::weapon::WeaponRuntimeState::burstRemaining = 0 |
在文件 WeaponDefinitionRuntime.h 第 48 行定义.
◆ burstTimer
| float eve::weapon::WeaponRuntimeState::burstTimer = 0.f |
在文件 WeaponDefinitionRuntime.h 第 49 行定义.
◆ cooldown
| float eve::weapon::WeaponRuntimeState::cooldown = 0.f |
在文件 WeaponDefinitionRuntime.h 第 47 行定义.
◆ currentSpread
| float eve::weapon::WeaponRuntimeState::currentSpread = 0.f |
在文件 WeaponDefinitionRuntime.h 第 53 行定义.
◆ jammed
| bool eve::weapon::WeaponRuntimeState::jammed = false |
在文件 WeaponDefinitionRuntime.h 第 50 行定义.
◆ recoilPitch
| float eve::weapon::WeaponRuntimeState::recoilPitch = 0.f |
在文件 WeaponDefinitionRuntime.h 第 54 行定义.
◆ recoilYaw
| float eve::weapon::WeaponRuntimeState::recoilYaw = 0.f |
在文件 WeaponDefinitionRuntime.h 第 55 行定义.
◆ resource
| Resource eve::weapon::WeaponRuntimeState::resource |
在文件 WeaponDefinitionRuntime.h 第 46 行定义.
◆ selector
| FireMode eve::weapon::WeaponRuntimeState::selector = FireMode::Single |
在文件 WeaponDefinitionRuntime.h 第 56 行定义.
◆ stage
| AttackStage eve::weapon::WeaponRuntimeState::stage = AttackStage::Idle |
在文件 WeaponDefinitionRuntime.h 第 51 行定义.
◆ stageTimer
| float eve::weapon::WeaponRuntimeState::stageTimer = 0.f |
在文件 WeaponDefinitionRuntime.h 第 52 行定义.
该结构体的文档由以下文件生成:
- src/modules/weapon/WeaponDefinitionRuntime.h