VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
EntitySystem.cpp File Reference
#include "Engine/Memory/VtableLookup.hpp"
#include <VoltMod/Core/Log.hpp>
#include <VoltMod/Engine/GameData/Bindings.hpp>
#include <VoltMod/Engine/Interfaces.hpp>
#include <VoltMod/Entities/EntitySystem.hpp>
#include <entity2/entityidentity.h>
#include <entity2/entityinstance.h>
#include <entity2/entitysystem.h>
#include <entityhandle.h>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  VoltMod
 

Functions

CGameEntitySystem * GameEntitySystem ()
 

Variables

static CGameEntitySystem * g_entitySystem = nullptr
 
static constexpr std::string_view VoltMod::ControllerClass = "cs_player_controller"
 

Function Documentation

◆ GameEntitySystem()

CGameEntitySystem * GameEntitySystem ( )

Definition at line 22 of file EntitySystem.cpp.

References g_entitySystem.

Variable Documentation

◆ g_entitySystem

CGameEntitySystem* g_entitySystem = nullptr
static

The SDK calls GameEntitySystem() without context. EntitySystem owns this pointer and clears it before the load cycle ends.

Definition at line 19 of file EntitySystem.cpp.

Referenced by GameEntitySystem(), and VoltMod::EntitySystem::~EntitySystem().