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

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerConnect From (IGameEvent &e)
 

Public Attributes

std::string Name
 player name
 
int Slot = -1
 user ID on server (unique on server)
 
std::string Networkid
 player network (i.e steam) id
 
uint64_t Xuid = 0
 steam id
 
bool Bot = false
 

Static Public Attributes

static constexpr std::string_view EventName = "player_connect"
 

Detailed Description

a new client connected

Definition at line 1405 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1330 of file EventTypes.cpp.

References Name, and VoltMod::ReadFile().

Member Data Documentation

◆ Bot

bool VoltMod::PlayerConnect::Bot = false

Definition at line 1412 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::PlayerConnect::EventName = "player_connect"
staticconstexpr

Definition at line 1407 of file EventTypes.hpp.

◆ Name

std::string VoltMod::PlayerConnect::Name

player name

Definition at line 1408 of file EventTypes.hpp.

Referenced by From().

◆ Networkid

std::string VoltMod::PlayerConnect::Networkid

player network (i.e steam) id

Definition at line 1410 of file EventTypes.hpp.

◆ Slot

int VoltMod::PlayerConnect::Slot = -1

user ID on server (unique on server)

Definition at line 1409 of file EventTypes.hpp.

◆ Xuid

uint64_t VoltMod::PlayerConnect::Xuid = 0

steam id

Definition at line 1411 of file EventTypes.hpp.


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