Interface IModEvents

Namespace
FTK2.ModAPI.Events
Assembly
FTK2.ModAPI.dll

Owner-tracked main-thread lifecycle event subscriptions.

public interface IModEvents

Methods

Subscribe<T>(Action<T>)

Subscribes to an exact event type for the owner lifetime.

IDisposable Subscribe<T>(Action<T> handler)

Parameters

handler Action<T>

Callback invoked on Unity's main thread.

Returns

IDisposable

A subscription that must be disposed on Unity's main thread when no longer needed.

Type Parameters

T

The event payload type, such as GameDataReady.