载入中...
搜索中...
未找到
eve::weapon::WeaponRuntimeState结构体 参考

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 行定义.

被这些函数引用 eve::weapon::WeaponDefinitionRuntime::reload().

◆ 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 行定义.

被这些函数引用 eve::weapon::WeaponDefinitionRuntime::reload().

◆ selector

FireMode eve::weapon::WeaponRuntimeState::selector = FireMode::Single

在文件 WeaponDefinitionRuntime.h 第 56 行定义.

被这些函数引用 eve::weapon::WeaponDefinitionRuntime::reload().

◆ stage

AttackStage eve::weapon::WeaponRuntimeState::stage = AttackStage::Idle

在文件 WeaponDefinitionRuntime.h 第 51 行定义.

◆ stageTimer

float eve::weapon::WeaponRuntimeState::stageTimer = 0.f

在文件 WeaponDefinitionRuntime.h 第 52 行定义.


该结构体的文档由以下文件生成: