VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
EngineTypes.hpp
Go to the documentation of this file.
1#pragma once
2
3// VoltMod's only forward declarations, for three reasons:
4// 1. SDK types passed by pointer or reference, so consumers never include the SDK.
5// 2. Framework types defined under src/, which have no public header.
6// 3. One side of a pair of headers that would otherwise include each other.
7
8#include <cstdint>
9
10// 1. SDK and KHook types.
11class CCheckTransmitInfo;
12class CCLCMsg_RespondCvarValue;
13class CCommand;
14class CEntityIdentity;
15class CEntityInstance;
16class CEntityKeyValues;
17class CGameEntitySystem;
18class CGameTrace;
19class CGlobalVars;
20class CNetMessage;
21class CNetworkGameServerBase;
22class CSchemaSystemTypeScope;
23class CServerSideClient;
24class CServerSideClientBase;
25class CTraceFilter;
26class CUtlString; // the custom HUD setters take `const CUtlString*`
27class CPlayerSlot;
28class ICvar;
29class IEntityResourceManifest;
30class IFileSystem;
31class IGameEvent;
32class IGameEventManager2;
33class IGameEventSystem;
34class IGameResourceService;
35class INetChannel;
36class INetChannelInfo;
37struct NetMessageInfo_t;
38class INetworkMessageProcessingPreFilter;
39class INetworkMessages;
40class INetworkServerService;
41class IRecipientFilter;
42class ISchemaSystem;
43class ISource2GameClients; // IServerGameClients
44class ISource2GameEntities;
45class ISource2Server; // IServerGameDLL
46class ISource2WorldSession;
47class IVEngineServer2;
48class QAngle;
49struct Ray_t;
50class Vector;
51union CVValue_t;
52enum EConVarType : int16_t;
53enum NetChannelBufType_t : int8_t;
54
55namespace KHook
56{
57/** The loader's hook dispatcher, handed to each plugin through @ref VoltMod::IPluginContext. */
58class IKHook;
59} // namespace KHook
60
61namespace VoltMod
62{
63
64/** Tags for engine classes the SDK does not declare; only ever pointed to. */
65class EnginePawn // CCSPlayerPawn and the pawns sharing its vtable
66{};
67class EngineMovementServices // CCSPlayer_MovementServices
68{};
69class EngineWeaponServices // CCSPlayer_WeaponServices
70{};
71class EngineNavPhysics // the nav mesh's physics interface, used by @ref Trace
72{};
73
74// 2. Defined under src/.
75class ScreenEntity; // Ui/ScreenEntity.hpp
76class PendingConVarQueries; // Hooks/PendingConVarQueries.hpp
77class CommandRouter; // Commands/CommandRouter.hpp
78class EngineArgBinder; // Commands/ArgBinding.hpp
79
80// 3. Include cycles.
81class EntitySystem; // Entity.hpp points to it; EntitySystem.hpp returns entities by value
82class Controller; // Pawn.hpp returns it; Controller.hpp includes Pawn.hpp
83class Pawn; // Player.hpp returns both without pulling the schema headers into SDK-free tests
84class GlowVision; // Visibility.hpp returns it; GlowVision.hpp includes Visibility.hpp
85
86} // namespace VoltMod
The registered commands, their usage lines, and the dispatch that runs one.
A player's identity behind a slot: name, money, team, scoreboard row. It survives death and respawn; ...
runtime.Entities: finds and creates entities. Everything it returns is valid for this frame only; see...
Players as team-colored outlines through walls, for one client or one team alone.
A player's body: health, armor, movement, aim, weapons. The engine replaces it on every spawn; the Co...
Definition Pawn.hpp:35
Bookkeeping for ClientConVars: per-slot, cookie-keyed queries awaiting an answer.
The custom_hud_layout entity behind a Screen: spawning, removal, and every write.
::QAngle QAngle
Definition Math.hpp:15
::Vector Vector
Definition Math.hpp:12