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

Centralized holder for all SDK 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 SDK 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 the engine headers.

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

Definition at line 32 of file Interfaces.hpp.

◆ Engine

IVEngineServer2* VoltMod::Interfaces::Engine = nullptr

Definition at line 26 of file Interfaces.hpp.

◆ EntitySystem

CGameEntitySystem* VoltMod::Interfaces::EntitySystem = nullptr

Definition at line 31 of file Interfaces.hpp.

◆ GameEntities

ISource2GameEntities* VoltMod::Interfaces::GameEntities = nullptr

Definition at line 25 of file Interfaces.hpp.

◆ GameEventManager

IGameEventManager2* VoltMod::Interfaces::GameEventManager = nullptr

Definition at line 29 of file Interfaces.hpp.

◆ GameEventSystem

IGameEventSystem* VoltMod::Interfaces::GameEventSystem = nullptr

Definition at line 27 of file Interfaces.hpp.

Referenced by VoltMod::PostUserMessage().

◆ GameResourceService

IGameResourceService* VoltMod::Interfaces::GameResourceService = nullptr

Definition at line 33 of file Interfaces.hpp.

◆ NetworkMessages

INetworkMessages* VoltMod::Interfaces::NetworkMessages = nullptr

Definition at line 28 of file Interfaces.hpp.

Referenced by VoltMod::PostUserMessage().

◆ 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.

◆ 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: