Class FunctionReference
- Namespace
- CounterStrikeSharp.API.Core
- Assembly
- CounterStrikeSharp.API.dll
Represents a reference to a function that can be called from native code.
public class FunctionReference
- Inheritance
-
objectFunctionReference
Properties
CompletionTask
For SingleUse function references, this task will complete when the function has finished invoking.
public Task CompletionTask { get; }
Property Value
Identifier
public int Identifier { get; }
Property Value
Lifetime
Describes the lifetime of a function reference.
public FunctionLifetime Lifetime { get; }
Property Value
Methods
Create(Delegate, FunctionLifetime)
public static FunctionReference Create(Delegate method, FunctionLifetime lifetime = FunctionLifetime.Permanent)
Parameters
method
Delegatelifetime
FunctionLifetime
Returns
GetFunctionPointer()
public nint GetFunctionPointer()
Returns
Remove(int)
public static void Remove(int reference)
Parameters
reference
int