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

#include <EventTypes.hpp>

Static Public Member Functions

static SwitchTeam From (IGameEvent &e)
 

Public Attributes

int NumPlayers = 0
 number of active players on both T and CT
 
int NumSpectators = 0
 number of spectators
 
int AvgRank = 0
 average rank of human players
 
int NumTSlotsFree = 0
 
int NumCTSlotsFree = 0
 

Static Public Attributes

static constexpr std::string_view EventName = "switch_team"
 

Detailed Description

Definition at line 2016 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1903 of file EventTypes.cpp.

References NumPlayers, and VoltMod::ReadFile().

Member Data Documentation

◆ AvgRank

int VoltMod::SwitchTeam::AvgRank = 0

average rank of human players

Definition at line 2021 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::SwitchTeam::EventName = "switch_team"
staticconstexpr

Definition at line 2018 of file EventTypes.hpp.

◆ NumCTSlotsFree

int VoltMod::SwitchTeam::NumCTSlotsFree = 0

Definition at line 2023 of file EventTypes.hpp.

◆ NumPlayers

int VoltMod::SwitchTeam::NumPlayers = 0

number of active players on both T and CT

Definition at line 2019 of file EventTypes.hpp.

Referenced by From().

◆ NumSpectators

int VoltMod::SwitchTeam::NumSpectators = 0

number of spectators

Definition at line 2020 of file EventTypes.hpp.

◆ NumTSlotsFree

int VoltMod::SwitchTeam::NumTSlotsFree = 0

Definition at line 2022 of file EventTypes.hpp.


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