VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::PlayerScore Struct Reference

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerScore From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 user ID on server
 
int Kills = 0
 
int Deaths = 0
 
int Score = 0
 total game score
 

Static Public Attributes

static constexpr std::string_view EventName = "player_score"
 

Detailed Description

players scores changed

Definition at line 1579 of file EventTypes.hpp.

Member Function Documentation

◆ From()

PlayerScore VoltMod::PlayerScore::From ( IGameEvent &  e)
static

Definition at line 1496 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ Deaths

int VoltMod::PlayerScore::Deaths = 0

of deaths

Definition at line 1584 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::PlayerScore::EventName = "player_score"
staticconstexpr

Definition at line 1581 of file EventTypes.hpp.

◆ Kills

int VoltMod::PlayerScore::Kills = 0

of kills

Definition at line 1583 of file EventTypes.hpp.

◆ Score

int VoltMod::PlayerScore::Score = 0

total game score

Definition at line 1585 of file EventTypes.hpp.

◆ Slot

int VoltMod::PlayerScore::Slot = -1

user ID on server

Definition at line 1582 of file EventTypes.hpp.

Referenced by From().


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