|
VoltMod
C++23 framework for CS2 server plugins
|
#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 |
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.
|
inlineexplicitnoexcept |
Definition at line 17 of file EntityRef.hpp.
|
defaultnoexcept |
| uint32_t VoltMod::EntityRef::Handle = Unset |
The engine's CHandle bits.
Definition at line 15 of file EntityRef.hpp.
Referenced by VoltMod::EntitySystem::Get(), operator bool(), and VoltMod::OwnerSlot().
|
staticconstexpr |
Definition at line 12 of file EntityRef.hpp.
Referenced by operator bool(), and VoltMod::Entity::Ref().