Class ScriptContext
- Namespace
- CounterStrikeSharp.API.Core
- Assembly
- CounterStrikeSharp.API.dll
public class ScriptContext
- Inheritance
-
objectScriptContext
Constructors
ScriptContext()
public ScriptContext()
ScriptContext(fxScriptContext*)
public ScriptContext(fxScriptContext* context)
Parameters
context
fxScriptContext*
Properties
GlobalScriptContext
public static ScriptContext GlobalScriptContext { get; }
Property Value
Methods
CheckErrors()
public void CheckErrors()
GetArgument(Type, int)
public object GetArgument(Type type, int index)
Parameters
Returns
- object
GetArgument<T>(int)
public T GetArgument<T>(int index)
Parameters
index
int
Returns
- T
Type Parameters
T
GetBytes()
public byte[] GetBytes()
Returns
- byte[]
GetContextUnderlyingAddress()
public nint GetContextUnderlyingAddress()
Returns
GetResult(Type)
public object GetResult(Type type)
Parameters
type
Type
Returns
- object
GetResult<T>()
public T GetResult<T>()
Returns
- T
Type Parameters
T
Invoke()
public void Invoke()
Push(object)
public void Push(object arg)
Parameters
arg
object
Reset()
public void Reset()
SetIdentifier(ulong)
[SecurityCritical]
public void SetIdentifier(ulong arg)
Parameters
arg
ulong
SetResult(object, fxScriptContext*)
public void SetResult(object arg, fxScriptContext* cxt)
Parameters
arg
objectcxt
fxScriptContext*
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.