swiftlys2/docs/api/ai/
API Reference SteamAPI

Callback`1

Class
Namespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
public sealed class Callback<T> : IDisposable where T : struct
Inherits object
Implements IDisposable

Represents a Steam callback that automatically manages its lifecycle

View source

Methods

Create(Action<T>)

Create and register a new callback

public static Callback<T> Create(Action<T> callback)
Parameters
Returns
Callback<T>

Dispose()

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

public void Dispose()

~Callback()

protected ~Callback()