|
group2 0.1.0
CSE 125 Group 2
|
ECS component: one-shot weapon pickup spawned at a player's death position. More...
#include <DroppedWeapon.hpp>
Public Attributes | |
| WeaponType | type = WeaponType::Rifle |
| Weapon type from the slot's GunInstance. | |
| int | totalAmmo = 0 |
| Reserve ammo at death. | |
| int | currentMagAmmo = 0 |
| Ammo in the magazine at death. | |
| float | despawnTimer = 0.0f |
| Seconds until the entity is destroyed. | |
ECS component: one-shot weapon pickup spawned at a player's death position.
Snapshots the slot's GunInstance ammo at death; pickup grants those exact ammo counts (no full-mag refill like world spawners). Lifetime is bounded by despawnTimer; pickup or expiry destroys the entity.
| int DroppedWeapon::currentMagAmmo = 0 |
Ammo in the magazine at death.
| float DroppedWeapon::despawnTimer = 0.0f |
Seconds until the entity is destroyed.
| int DroppedWeapon::totalAmmo = 0 |
Reserve ammo at death.
| WeaponType DroppedWeapon::type = WeaponType::Rifle |
Weapon type from the slot's GunInstance.