VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
Interfaces.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace VoltMod
6{
7
8/**
9 * @brief Centralized holder for all SDK interface pointers.
10 *
11 * All fields are filled while the runtime starts, from the factories the host hands over.
12 *
13 * Every field is a pointer, so this header names the SDK interfaces without including
14 * any SDK header. A translation unit that calls through one of them includes the SDK
15 * header it needs; the rest of the framework - and every plugin that only holds the
16 * runtime - stays clear of the engine headers.
17 */
19{
20 Interfaces() = default;
21
22 ISource2Server* ServerGameDLL = nullptr;
23 ISource2GameClients* ServerGameClients = nullptr;
24 INetworkServerService* NetworkServerService = nullptr;
25 ISource2GameEntities* GameEntities = nullptr;
26 IVEngineServer2* Engine = nullptr;
27 IGameEventSystem* GameEventSystem = nullptr;
28 INetworkMessages* NetworkMessages = nullptr;
29 IGameEventManager2* GameEventManager = nullptr;
30 ISchemaSystem* SchemaSystem = nullptr;
31 CGameEntitySystem* EntitySystem = nullptr;
32 ICvar* CVar = nullptr;
33 IGameResourceService* GameResourceService = nullptr;
34};
35
36} // namespace VoltMod
ISource2Server * ServerGameDLL
ISchemaSystem * SchemaSystem
INetworkServerService * NetworkServerService
ISource2GameEntities * GameEntities
IGameResourceService * GameResourceService
IVEngineServer2 * Engine
IGameEventSystem * GameEventSystem
CGameEntitySystem * EntitySystem
INetworkMessages * NetworkMessages
IGameEventManager2 * GameEventManager
ISource2GameClients * ServerGameClients