VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
UnsafeServices.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
VoltMod/Core/Result.hpp
>
4
#include <
VoltMod/Engine/GameData/Bindings.hpp
>
5
#include <
VoltMod/Engine/Interfaces.hpp
>
6
7
namespace
VoltMod
8
{
9
10
/**
11
* @brief Opt-in access to raw engine interfaces and typed gamedata bindings.
12
*
13
* The plugin module fills this before the runtime and owns it, so every engine service is built
14
* with its interfaces already resolved. Include `<VoltMod/Unsafe/Api.hpp>` when a plugin needs
15
* direct engine access through `runtime.Unsafe`.
16
*/
17
struct
UnsafeServices
18
{
19
VoltMod::Interfaces
Interfaces
;
20
VoltMod::Bindings
Bindings
;
21
/** Why gamedata did not bind; success when it did. */
22
Status
GameData
;
23
};
24
25
}
// namespace VoltMod
Bindings.hpp
Interfaces.hpp
Result.hpp
VoltMod
Definition
Options.hpp:13
VoltMod::Status
std::expected< void, Error > Status
Definition
Result.hpp:67
VoltMod::Bindings
Definition
Bindings.hpp:16
VoltMod::Interfaces
Centralized holder for all HL2SDK interface pointers.
Definition
Interfaces.hpp:19
VoltMod::UnsafeServices
Opt-in access to raw engine interfaces and typed gamedata bindings.
Definition
UnsafeServices.hpp:18
VoltMod::UnsafeServices::Bindings
VoltMod::Bindings Bindings
Definition
UnsafeServices.hpp:20
VoltMod::UnsafeServices::Interfaces
VoltMod::Interfaces Interfaces
Definition
UnsafeServices.hpp:19
VoltMod::UnsafeServices::GameData
Status GameData
Definition
UnsafeServices.hpp:22
include
VoltMod
Unsafe
UnsafeServices.hpp
Generated by
1.9.8