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

#include <EventTypes.hpp>

Static Public Member Functions

static VoteCast From (IGameEvent &e)
 

Public Attributes

int VoteOption = 0
 which option the player voted on
 
VoltMod::Team Team = VoltMod::Team::None
 
int Slot = -1
 player who voted
 

Static Public Attributes

static constexpr std::string_view EventName = "vote_cast"
 

Detailed Description

Definition at line 2174 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 2052 of file EventTypes.cpp.

References VoltMod::ReadFile(), Slot, and VoteOption.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::VoteCast::EventName = "vote_cast"
staticconstexpr

Definition at line 2176 of file EventTypes.hpp.

◆ Slot

int VoltMod::VoteCast::Slot = -1

player who voted

Definition at line 2179 of file EventTypes.hpp.

Referenced by From().

◆ Team

VoltMod::Team VoltMod::VoteCast::Team = VoltMod::Team::None

Definition at line 2178 of file EventTypes.hpp.

◆ VoteOption

int VoltMod::VoteCast::VoteOption = 0

which option the player voted on

Definition at line 2177 of file EventTypes.hpp.

Referenced by From().


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