VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::EntityRef Struct Reference

#include <EntityRef.hpp>

Public Member Functions

 operator bool () const noexcept
 
bool operator== (const EntityRef &) const noexcept=default
 

Public Attributes

uint32_t Handle = Unset
 

Static Public Attributes

static constexpr uint32_t Unset = 0xFFFFFFFFu
 

Detailed Description

An entity handle that is safe to keep across frames: it resolves to nothing once its entity is gone, even if another entity reuses the slot. EntityRef{} clears a handle field.

Definition at line 10 of file EntityRef.hpp.

Member Function Documentation

◆ operator bool()

VoltMod::EntityRef::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 17 of file EntityRef.hpp.

References Handle, and Unset.

◆ operator==()

bool VoltMod::EntityRef::operator== ( const EntityRef &  ) const
defaultnoexcept

Member Data Documentation

◆ Handle

uint32_t VoltMod::EntityRef::Handle = Unset

The engine's CHandle bits.

Definition at line 15 of file EntityRef.hpp.

Referenced by operator bool().

◆ Unset

constexpr uint32_t VoltMod::EntityRef::Unset = 0xFFFFFFFFu
staticconstexpr

Definition at line 12 of file EntityRef.hpp.

Referenced by operator bool(), and VoltMod::Entity::Ref().


The documentation for this struct was generated from the following file: