3#include <entity2/entitykeyvalues.h>
4#include <mathlib/vector.h>
28 _kv->SetString(std::string(
key).
c_str(), std::string(value).
c_str());
37 _kv->SetInt(std::string(
key).
c_str(), value);
46 _kv->SetFloat(std::string(
key).
c_str(), value);
55 _kv->SetBool(std::string(
key).
c_str(), value);
64 _kv->SetVector(std::string(
key).
c_str(), value);
73 _kv->SetQAngle(std::string(
key).
c_str(), value);
82 _kv->SetColor(std::string(
key).
c_str(), ::Color(value.
R, value.
G, value.
B, value.
A));
Spawn keyvalues such as "origin", "spawnflags" or "effect_name".
KeyValues & Set(std::string_view key, std::string_view value)
CEntityKeyValues * Detach()
static std::string ReadFile(const std::filesystem::path &path)
An RGBA color in the engine's byte order, as m_clrRender and glow colors hold it.