group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
WeaponSpawner Struct Reference

ECS component: world weapon pickup point with respawn cooldown. More...

#include <WeaponSpawner.hpp>

Public Attributes

WeaponType type = WeaponType::Rifle
 Type of weapon this spawner provides.
float spawnCooldown = 0
 Seconds remaining before the weapon reappears.
bool hasWeapon = false
 True if a weapon is available for pickup.

Detailed Description

ECS component: world weapon pickup point with respawn cooldown.

Member Data Documentation

◆ hasWeapon

bool WeaponSpawner::hasWeapon = false

True if a weapon is available for pickup.

◆ spawnCooldown

float WeaponSpawner::spawnCooldown = 0

Seconds remaining before the weapon reappears.

◆ type

WeaponType WeaponSpawner::type = WeaponType::Rifle

Type of weapon this spawner provides.


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