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

#include <EventTypes.hpp>

Static Public Member Functions

static ServerPreShutdown From (IGameEvent &e)
 

Public Attributes

std::string Reason
 reason why server is about to be shut down
 

Static Public Attributes

static constexpr std::string_view EventName = "server_pre_shutdown"
 

Detailed Description

server is about to be shut down

Definition at line 1816 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1709 of file EventTypes.cpp.

References VoltMod::ReadFile(), and Reason.

Member Data Documentation

◆ EventName

constexpr std::string_view VoltMod::ServerPreShutdown::EventName = "server_pre_shutdown"
staticconstexpr

Definition at line 1818 of file EventTypes.hpp.

◆ Reason

std::string VoltMod::ServerPreShutdown::Reason

reason why server is about to be shut down

Definition at line 1819 of file EventTypes.hpp.

Referenced by From().


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