Table of Contents

Class CEntityKeyValues

Namespace
CounterStrikeSharp.API.Modules.Utils
Assembly
CounterStrikeSharp.API.dll

WARNING: This is intended to be only used with DispatchSpawn(CEntityKeyValues?) for now!

public class CEntityKeyValues : NativeObject, IDisposable
Inheritance
object
CEntityKeyValues
Implements
Inherited Members

Constructors

CEntityKeyValues()

public CEntityKeyValues()

CEntityKeyValues(nint)

public CEntityKeyValues(nint pointer)

Parameters

pointer nint

Properties

this[string, KeyValuesType]

public object? this[string key, KeyValuesType type] { get; set; }

Parameters

key string
type KeyValuesType

Property Value

object

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetAngle(string, QAngle?)

public QAngle? GetAngle(string key, QAngle? defaultValue = null)

Parameters

key string
defaultValue QAngle

Returns

QAngle

GetBool(string, bool)

public bool GetBool(string key, bool defaultValue = false)

Parameters

key string
defaultValue bool

Returns

bool

GetColor(string)

public Color GetColor(string key)

Parameters

key string

Returns

Color

GetDouble(string, double)

public double GetDouble(string key, double defaultValue = 0)

Parameters

key string
defaultValue double

Returns

double

GetEHandle(string, CEntityHandle?)

public CEntityHandle? GetEHandle(string key, CEntityHandle? defaultValue = null)

Parameters

key string
defaultValue CEntityHandle

Returns

CEntityHandle

GetFloat(string, float)

public float GetFloat(string key, float defaultValue = 0)

Parameters

key string
defaultValue float

Returns

float

GetInt(string, int)

public int GetInt(string key, int defaultValue = 0)

Parameters

key string
defaultValue int

Returns

int

GetInt64(string, long)

public long GetInt64(string key, long defaultValue = 0)

Parameters

key string
defaultValue long

Returns

long

GetMatrix3x4(string, matrix3x4_t?)

public matrix3x4_t? GetMatrix3x4(string key, matrix3x4_t? defaultValue = null)

Parameters

key string
defaultValue matrix3x4_t

Returns

matrix3x4_t

GetPointer(string, nint)

public nint GetPointer(string key, nint defaultValue = 0)

Parameters

key string
defaultValue nint

Returns

nint

GetQuaternion(string, Quaternion?)

public Quaternion? GetQuaternion(string key, Quaternion? defaultValue = null)

Parameters

key string
defaultValue Quaternion

Returns

Quaternion

GetString(string, string)

public string? GetString(string key, string defaultValue = "")

Parameters

key string
defaultValue string

Returns

string

GetStringToken(string, uint)

public uint GetStringToken(string key, uint defaultValue = 0)

Parameters

key string
defaultValue uint

Returns

uint

GetUInt(string, uint)

public uint GetUInt(string key, uint defaultValue = 0)

Parameters

key string
defaultValue uint

Returns

uint

GetUInt64(string, ulong)

public ulong GetUInt64(string key, ulong defaultValue = 0)

Parameters

key string
defaultValue ulong

Returns

ulong

GetVector(string, Vector?)

public Vector? GetVector(string key, Vector? defaultValue = null)

Parameters

key string
defaultValue Vector

Returns

Vector

GetVector2D(string, Vector2D?)

public Vector2D? GetVector2D(string key, Vector2D? defaultValue = null)

Parameters

key string
defaultValue Vector2D

Returns

Vector2D

GetVector4D(string, Vector4D?)

public Vector4D? GetVector4D(string key, Vector4D? defaultValue = null)

Parameters

key string
defaultValue Vector4D

Returns

Vector4D

HasValue(string)

public bool HasValue(string key)

Parameters

key string

Returns

bool

SetAngle(string, QAngle)

public void SetAngle(string key, QAngle angle)

Parameters

key string
angle QAngle

SetAngle(string, float, float, float)

public void SetAngle(string key, float pitch, float yaw, float roll)

Parameters

key string
pitch float
yaw float
roll float

SetBool(string, bool)

public void SetBool(string key, bool value)

Parameters

key string
value bool

SetColor(string, Color)

public void SetColor(string key, Color value)

Parameters

key string
value Color

SetDouble(string, double)

public void SetDouble(string key, double value)

Parameters

key string
value double

SetEHandle(string, CEntityHandle)

public void SetEHandle(string key, CEntityHandle value)

Parameters

key string
value CEntityHandle

SetFloat(string, float)

public void SetFloat(string key, float value)

Parameters

key string
value float

SetInt(string, int)

public void SetInt(string key, int value)

Parameters

key string
value int

SetInt64(string, long)

public void SetInt64(string key, long value)

Parameters

key string
value long

SetMatrix3x4(string, matrix3x4_t)

public void SetMatrix3x4(string key, matrix3x4_t value)

Parameters

key string
value matrix3x4_t

SetPointer(string, nint)

public void SetPointer(string key, nint value)

Parameters

key string
value nint

SetQuaternion(string, Quaternion)

public void SetQuaternion(string key, Quaternion value)

Parameters

key string
value Quaternion

SetQuaternion(string, float, float, float, float)

public void SetQuaternion(string key, float x, float y, float z, float w)

Parameters

key string
x float
y float
z float
w float

SetString(string, string)

public void SetString(string key, string value)

Parameters

key string
value string

SetStringToken(string, uint)

public void SetStringToken(string key, uint value)

Parameters

key string
value uint

SetUInt(string, uint)

public void SetUInt(string key, uint value)

Parameters

key string
value uint

SetUInt64(string, ulong)

public void SetUInt64(string key, ulong value)

Parameters

key string
value ulong

SetVector(string, Vector)

public void SetVector(string key, Vector vector)

Parameters

key string
vector Vector

SetVector(string, float, float, float)

public void SetVector(string key, float x, float y, float z)

Parameters

key string
x float
y float
z float

SetVector2D(string, Vector2D)

public void SetVector2D(string key, Vector2D value)

Parameters

key string
value Vector2D

SetVector2D(string, float, float)

public void SetVector2D(string key, float x, float y)

Parameters

key string
x float
y float

SetVector4D(string, Vector4D)

public void SetVector4D(string key, Vector4D value)

Parameters

key string
value Vector4D

SetVector4D(string, float, float, float, float)

public void SetVector4D(string key, float x, float y, float z, float w)

Parameters

key string
x float
y float
z float
w float