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

#include <EventTypes.hpp>

Static Public Member Functions

static ServerShutdown From (IGameEvent &e)
 

Public Attributes

std::string Reason
 reason why server was shut down
 

Static Public Attributes

static constexpr std::string_view EventName = "server_shutdown"
 

Detailed Description

server shut down

Definition at line 1824 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1716 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Reason.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::ServerShutdown::EventName = "server_shutdown"
staticconstexpr

Definition at line 1826 of file EventTypes.hpp.

◆ Reason

std::string VoltMod::ServerShutdown::Reason

reason why server was shut down

Definition at line 1827 of file EventTypes.hpp.

Referenced by From().


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