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
-
objectCEntityKeyValues
- Implements
- Inherited Members
Constructors
CEntityKeyValues()
public CEntityKeyValues()
CEntityKeyValues(nint)
public CEntityKeyValues(nint pointer)
Parameters
pointernint
Properties
this[string, KeyValuesType]
public object? this[string key, KeyValuesType type] { get; set; }
Parameters
keystringtypeKeyValuesType
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
Returns
GetBool(string, bool)
public bool GetBool(string key, bool defaultValue = false)
Parameters
Returns
GetColor(string)
public Color GetColor(string key)
Parameters
keystring
Returns
GetDouble(string, double)
public double GetDouble(string key, double defaultValue = 0)
Parameters
Returns
GetEHandle(string, CEntityHandle?)
public CEntityHandle? GetEHandle(string key, CEntityHandle? defaultValue = null)
Parameters
keystringdefaultValueCEntityHandle
Returns
GetFloat(string, float)
public float GetFloat(string key, float defaultValue = 0)
Parameters
Returns
GetInt(string, int)
public int GetInt(string key, int defaultValue = 0)
Parameters
Returns
GetInt64(string, long)
public long GetInt64(string key, long defaultValue = 0)
Parameters
Returns
GetMatrix3x4(string, matrix3x4_t?)
public matrix3x4_t? GetMatrix3x4(string key, matrix3x4_t? defaultValue = null)
Parameters
keystringdefaultValuematrix3x4_t
Returns
GetPointer(string, nint)
public nint GetPointer(string key, nint defaultValue = 0)
Parameters
Returns
GetQuaternion(string, Quaternion?)
public Quaternion? GetQuaternion(string key, Quaternion? defaultValue = null)
Parameters
keystringdefaultValueQuaternion
Returns
GetString(string, string)
public string? GetString(string key, string defaultValue = "")
Parameters
Returns
GetStringToken(string, uint)
public uint GetStringToken(string key, uint defaultValue = 0)
Parameters
Returns
GetUInt(string, uint)
public uint GetUInt(string key, uint defaultValue = 0)
Parameters
Returns
GetUInt64(string, ulong)
public ulong GetUInt64(string key, ulong defaultValue = 0)
Parameters
Returns
GetVector(string, Vector?)
public Vector? GetVector(string key, Vector? defaultValue = null)
Parameters
Returns
GetVector2D(string, Vector2D?)
public Vector2D? GetVector2D(string key, Vector2D? defaultValue = null)
Parameters
Returns
GetVector4D(string, Vector4D?)
public Vector4D? GetVector4D(string key, Vector4D? defaultValue = null)
Parameters
Returns
HasValue(string)
public bool HasValue(string key)
Parameters
keystring
Returns
SetAngle(string, QAngle)
public void SetAngle(string key, QAngle angle)
Parameters
SetAngle(string, float, float, float)
public void SetAngle(string key, float pitch, float yaw, float roll)
Parameters
SetBool(string, bool)
public void SetBool(string key, bool value)
Parameters
SetColor(string, Color)
public void SetColor(string key, Color value)
Parameters
SetDouble(string, double)
public void SetDouble(string key, double value)
Parameters
SetEHandle(string, CEntityHandle)
public void SetEHandle(string key, CEntityHandle value)
Parameters
keystringvalueCEntityHandle
SetFloat(string, float)
public void SetFloat(string key, float value)
Parameters
SetInt(string, int)
public void SetInt(string key, int value)
Parameters
SetInt64(string, long)
public void SetInt64(string key, long value)
Parameters
SetMatrix3x4(string, matrix3x4_t)
public void SetMatrix3x4(string key, matrix3x4_t value)
Parameters
keystringvaluematrix3x4_t
SetPointer(string, nint)
public void SetPointer(string key, nint value)
Parameters
SetQuaternion(string, Quaternion)
public void SetQuaternion(string key, Quaternion value)
Parameters
keystringvalueQuaternion
SetQuaternion(string, float, float, float, float)
public void SetQuaternion(string key, float x, float y, float z, float w)
Parameters
SetString(string, string)
public void SetString(string key, string value)
Parameters
SetStringToken(string, uint)
public void SetStringToken(string key, uint value)
Parameters
SetUInt(string, uint)
public void SetUInt(string key, uint value)
Parameters
SetUInt64(string, ulong)
public void SetUInt64(string key, ulong value)
Parameters
SetVector(string, Vector)
public void SetVector(string key, Vector vector)
Parameters
SetVector(string, float, float, float)
public void SetVector(string key, float x, float y, float z)
Parameters
SetVector2D(string, Vector2D)
public void SetVector2D(string key, Vector2D value)
Parameters
SetVector2D(string, float, float)
public void SetVector2D(string key, float x, float y)
Parameters
SetVector4D(string, Vector4D)
public void SetVector4D(string key, Vector4D value)
Parameters
SetVector4D(string, float, float, float, float)
public void SetVector4D(string key, float x, float y, float z, float w)