VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
EngineInterfaces.hpp
Go to the documentation of this file.
1#pragma once
2
4
7
8namespace VoltMod
9{
10
11/** The engine interfaces the host uses, looked up once at start. */
13{
14 ISource2Server* ServerGameDll = nullptr;
15 ISource2GameClients* ServerGameClients = nullptr;
16 INetworkServerService* NetworkServerService = nullptr;
17 ISource2GameEntities* GameEntities = nullptr;
18 ICvar* Cvar = nullptr;
19 IVEngineServer2* Engine = nullptr;
20
21 // Optional: null when missing, and what needs them says so.
22 ISchemaSystem* Schema = nullptr;
23 IGameResourceService* Resources = nullptr;
24 IFileSystem* Files = nullptr;
25 INetworkMessages* NetworkMessages = nullptr;
26};
27
28/** Fails when an interface the engine hooks need is missing; the optional ones are logged. */
30
31} // namespace VoltMod
std::expected< T, Error > Result
Definition Result.hpp:64
Result< EngineInterfaces > ResolveEngineInterfaces(const LoaderHandoff &start)
ISource2GameClients * ServerGameClients
IGameResourceService * Resources
INetworkMessages * NetworkMessages
ISource2GameEntities * GameEntities
INetworkServerService * NetworkServerService