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

ECS component: player respawn point with cooldown state. More...

#include <RespawnPoint.hpp>

Public Attributes

float cooldown = 0.0f
 Seconds remaining before the point is preferred again.
bool available = true
 True when cooldown has elapsed (ready for use).
float yaw = 0.0f
 Authored facing direction (radians) applied to players spawning here.

Detailed Description

ECS component: player respawn point with cooldown state.

After a player spawns at this point, it enters a cooldown period during which other players prefer alternative spawn locations. If all spawn points are on cooldown, the one with the lowest remaining cooldown is chosen.

Member Data Documentation

◆ available

bool RespawnPoint::available = true

True when cooldown has elapsed (ready for use).

◆ cooldown

float RespawnPoint::cooldown = 0.0f

Seconds remaining before the point is preferred again.

◆ yaw

float RespawnPoint::yaw = 0.0f

Authored facing direction (radians) applied to players spawning here.


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