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

Centralized holder for all HL2SDK interface pointers. More...

#include <Interfaces.hpp>

Public Member Functions

 Interfaces ()=default
 

Public Attributes

ISource2Server * ServerGameDLL = nullptr
 
ISource2GameClients * ServerGameClients = nullptr
 
INetworkServerService * NetworkServerService = nullptr
 
ISource2GameEntities * GameEntities = nullptr
 
IVEngineServer2 * Engine = nullptr
 
IGameEventSystem * GameEventSystem = nullptr
 
INetworkMessages * NetworkMessages = nullptr
 
IGameEventManager2 * GameEventManager = nullptr
 
ISchemaSystem * SchemaSystem = nullptr
 
CGameEntitySystem * EntitySystem = nullptr
 
ICvar * CVar = nullptr
 
IGameResourceService * GameResourceService = nullptr
 

Detailed Description

Centralized holder for all HL2SDK interface pointers.

All fields are filled while the runtime starts, from the factories the host hands over.

Every field is a pointer, so this header names the SDK interfaces without including any SDK header. A translation unit that calls through one of them includes the SDK header it needs; the rest of the framework - and every plugin that only holds the runtime - stays clear of eiface.h.

Definition at line 18 of file Interfaces.hpp.

Constructor & Destructor Documentation

◆ Interfaces()

VoltMod::Interfaces::Interfaces ( )
default

Member Data Documentation

◆ CVar

ICvar* VoltMod::Interfaces::CVar = nullptr

◆ Engine

◆ EntitySystem

CGameEntitySystem* VoltMod::Interfaces::EntitySystem = nullptr

◆ GameEntities

ISource2GameEntities* VoltMod::Interfaces::GameEntities = nullptr

Definition at line 25 of file Interfaces.hpp.

◆ GameEventManager

◆ GameEventSystem

IGameEventSystem* VoltMod::Interfaces::GameEventSystem = nullptr

◆ GameResourceService

IGameResourceService* VoltMod::Interfaces::GameResourceService = nullptr

◆ NetworkMessages

INetworkMessages* VoltMod::Interfaces::NetworkMessages = nullptr

Definition at line 28 of file Interfaces.hpp.

Referenced by VoltMod::Messages::Available().

◆ NetworkServerService

INetworkServerService* VoltMod::Interfaces::NetworkServerService = nullptr

Definition at line 24 of file Interfaces.hpp.

◆ SchemaSystem

ISchemaSystem* VoltMod::Interfaces::SchemaSystem = nullptr

Definition at line 30 of file Interfaces.hpp.

◆ ServerGameClients

ISource2GameClients* VoltMod::Interfaces::ServerGameClients = nullptr

Definition at line 23 of file Interfaces.hpp.

Referenced by VoltMod::Controller::ExecuteCommand().

◆ ServerGameDLL

ISource2Server* VoltMod::Interfaces::ServerGameDLL = nullptr

Definition at line 22 of file Interfaces.hpp.


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