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

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerChat From (IGameEvent &e)
 

Public Attributes

bool Teamonly = false
 true if team only chat
 
int Userid = 0
 chatting player
 
std::string Text
 chat text
 

Static Public Attributes

static constexpr std::string_view EventName = "player_chat"
 

Detailed Description

a public player chat

Definition at line 1395 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1321 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Teamonly.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::PlayerChat::EventName = "player_chat"
staticconstexpr

Definition at line 1397 of file EventTypes.hpp.

◆ Teamonly

bool VoltMod::PlayerChat::Teamonly = false

true if team only chat

Definition at line 1398 of file EventTypes.hpp.

Referenced by From().

◆ Text

std::string VoltMod::PlayerChat::Text

chat text

Definition at line 1400 of file EventTypes.hpp.

◆ Userid

int VoltMod::PlayerChat::Userid = 0

chatting player

Definition at line 1399 of file EventTypes.hpp.


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