|
group2 0.1.0
CSE 125 Group 2
|
A weapon drop queued during view iteration, spawned afterward. More...
#include <DroppedWeaponSystem.hpp>
Public Attributes | |
| glm::vec3 | pos {0.0f} |
| glm::vec3 | vel {0.0f} |
| GunInstance | gun {} |
| float | pickupDelay = 0.0f |
A weapon drop queued during view iteration, spawned afterward.
Creating the drop entity mid-iteration would invalidate the active view, so pickup handlers record the swap-out here and the system spawns them after.
| GunInstance systems::PendingWeaponDrop::gun {} |
| float systems::PendingWeaponDrop::pickupDelay = 0.0f |
| glm::vec3 systems::PendingWeaponDrop::pos {0.0f} |
| glm::vec3 systems::PendingWeaponDrop::vel {0.0f} |