group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
systems::PendingWeaponDrop Struct Reference

A weapon drop queued during view iteration, spawned afterward. More...

#include <DroppedWeaponSystem.hpp>

Collaboration diagram for systems::PendingWeaponDrop:
[legend]

Public Attributes

glm::vec3 pos {0.0f}
glm::vec3 vel {0.0f}
GunInstance gun {}
float pickupDelay = 0.0f

Detailed Description

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.

Member Data Documentation

◆ gun

GunInstance systems::PendingWeaponDrop::gun {}

◆ pickupDelay

float systems::PendingWeaponDrop::pickupDelay = 0.0f

◆ pos

glm::vec3 systems::PendingWeaponDrop::pos {0.0f}

◆ vel

glm::vec3 systems::PendingWeaponDrop::vel {0.0f}

The documentation for this struct was generated from the following file: