group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PlayerMatchStats.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <cstdint>
7
16{
17 int score = 0;
18 int kills = 0;
19 int deaths = 0;
20 bool hasWon = false;
21
30 uint16_t rttMs = 0;
31};
ECS component: per-player scoreboard statistics for the current match.
Definition PlayerMatchStats.hpp:16
int score
Player's current score.
Definition PlayerMatchStats.hpp:17
uint16_t rttMs
Last RTT this player's client reported to the server (ms).
Definition PlayerMatchStats.hpp:30
int deaths
Number of deaths this match.
Definition PlayerMatchStats.hpp:19
bool hasWon
True if the player reached the kill threshold.
Definition PlayerMatchStats.hpp:20
int kills
Number of kills achieved this match.
Definition PlayerMatchStats.hpp:18