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{
18 ICvar* Cvar = nullptr;
20
21 // Optional: null when missing, and what needs them says so.
24 IFileSystem* Files = nullptr;
26};
27
28/** Fails when an interface the engine hooks need is missing; the optional ones are logged. */
30
31} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
Result< EngineInterfaces > ResolveEngineInterfaces(const LoaderHandoff &start)
std::expected< T, Error > Result
Definition Result.hpp:64
ISource2GameClients * ServerGameClients
IGameResourceService * Resources
INetworkMessages * NetworkMessages
ISource2GameEntities * GameEntities
INetworkServerService * NetworkServerService