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

#include <EventTypes.hpp>

Static Public Member Functions

static ServerSpawn From (IGameEvent &e)
 

Public Attributes

std::string Hostname
 public host name
 
std::string Address
 hostame, IP or DNS name
 
int Port = 0
 server port
 
std::string Game
 game dir
 
std::string Mapname
 map name
 
std::string Addonname
 addon name
 
int Maxplayers = 0
 max players
 
std::string Os
 WIN32, LINUX.
 
bool Dedicated = false
 true if dedicated server
 
bool Password = false
 true if password protected
 

Static Public Attributes

static constexpr std::string_view EventName = "server_spawn"
 

Detailed Description

send once a server starts

Definition at line 1832 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1723 of file EventTypes.cpp.

References Hostname, and VoltMod::ReadFile().

Member Data Documentation

◆ Addonname

std::string VoltMod::ServerSpawn::Addonname

addon name

Definition at line 1840 of file EventTypes.hpp.

◆ Address

std::string VoltMod::ServerSpawn::Address

hostame, IP or DNS name

Definition at line 1836 of file EventTypes.hpp.

◆ Dedicated

bool VoltMod::ServerSpawn::Dedicated = false

true if dedicated server

Definition at line 1843 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::ServerSpawn::EventName = "server_spawn"
staticconstexpr

Definition at line 1834 of file EventTypes.hpp.

◆ Game

std::string VoltMod::ServerSpawn::Game

game dir

Definition at line 1838 of file EventTypes.hpp.

◆ Hostname

std::string VoltMod::ServerSpawn::Hostname

public host name

Definition at line 1835 of file EventTypes.hpp.

Referenced by From().

◆ Mapname

std::string VoltMod::ServerSpawn::Mapname

map name

Definition at line 1839 of file EventTypes.hpp.

◆ Maxplayers

int VoltMod::ServerSpawn::Maxplayers = 0

max players

Definition at line 1841 of file EventTypes.hpp.

◆ Os

std::string VoltMod::ServerSpawn::Os

WIN32, LINUX.

Definition at line 1842 of file EventTypes.hpp.

◆ Password

bool VoltMod::ServerSpawn::Password = false

true if password protected

Definition at line 1844 of file EventTypes.hpp.

◆ Port

int VoltMod::ServerSpawn::Port = 0

server port

Definition at line 1837 of file EventTypes.hpp.


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