|
VoltMod
C++23 framework for CS2 server plugins
|
Spawn keyvalues such as "origin", "spawnflags" or "effect_name". More...
#include <KeyValues.hpp>
Public Member Functions | |
| KeyValues () | |
| ~KeyValues () | |
| KeyValues (const KeyValues &)=delete | |
| KeyValues & | operator= (const KeyValues &)=delete |
| KeyValues & | Set (std::string_view key, std::string_view value) |
| KeyValues & | Set (std::string_view key, const char *value) |
| KeyValues & | Set (std::string_view key, int value) |
| KeyValues & | Set (std::string_view key, float value) |
| KeyValues & | Set (std::string_view key, bool value) |
| KeyValues & | Set (std::string_view key, const Vector &value) |
| KeyValues & | Set (std::string_view key, const QAngle &value) |
| KeyValues & | Set (std::string_view key, const Color &value) |
| CEntityKeyValues * | Raw () const |
| CEntityKeyValues * | Detach () |
Spawn keyvalues such as "origin", "spawnflags" or "effect_name".
Owns the engine object until a spawn takes it; one that never spawns frees it.
Definition at line 15 of file KeyValues.hpp.
| VoltMod::KeyValues::KeyValues | ( | ) |
Definition at line 10 of file KeyValues.cpp.
Referenced by KeyValues(), operator=(), Set(), Set(), Set(), Set(), Set(), Set(), Set(), and Set().
| VoltMod::KeyValues::~KeyValues | ( | ) |
Definition at line 12 of file KeyValues.cpp.
|
delete |
References KeyValues().
| CEntityKeyValues * VoltMod::KeyValues::Detach | ( | ) |
Hand the object to the engine's spawn, which frees it.
Definition at line 87 of file KeyValues.cpp.
Referenced by VoltMod::Entity::Spawn().
References KeyValues().
|
inline |
The wrapped object; nullptr after Detach().
Definition at line 39 of file KeyValues.hpp.
| KeyValues & VoltMod::KeyValues::Set | ( | std::string_view | key, |
| bool | value ) |
Definition at line 51 of file KeyValues.cpp.
References KeyValues().
|
inline |
Without this a string literal picks the bool overload and sets "true".
Definition at line 26 of file KeyValues.hpp.
References KeyValues(), and Set().
Definition at line 78 of file KeyValues.cpp.
References VoltMod::Color::A, VoltMod::Color::B, VoltMod::Color::G, KeyValues(), and VoltMod::Color::R.
Definition at line 69 of file KeyValues.cpp.
References KeyValues().
Definition at line 60 of file KeyValues.cpp.
References KeyValues().
| KeyValues & VoltMod::KeyValues::Set | ( | std::string_view | key, |
| float | value ) |
Definition at line 42 of file KeyValues.cpp.
References KeyValues().
| KeyValues & VoltMod::KeyValues::Set | ( | std::string_view | key, |
| int | value ) |
Definition at line 33 of file KeyValues.cpp.
References KeyValues().
| KeyValues & VoltMod::KeyValues::Set | ( | std::string_view | key, |
| std::string_view | value ) |
Definition at line 24 of file KeyValues.cpp.
References KeyValues().
Referenced by Set(), VoltMod::EntitySystem::SpawnBeam(), VoltMod::EntitySystem::SpawnLine(), VoltMod::EntitySystem::SpawnLine(), and VoltMod::EntitySystem::SpawnParticle().