Table of Contents

Interface IGameEvent<TArgs>

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

A game event to which a plugin can subscribe.

public interface IGameEvent<TArgs> where TArgs : struct

Type Parameters

TArgs

Methods

Subscribe(AsyncGameEventHandler<TArgs>)

Registers handler.

ISubscription Subscribe(AsyncGameEventHandler<TArgs> handler)

Parameters

handler AsyncGameEventHandler<TArgs>

Returns

ISubscription

Remarks

A handler that throws, or whose task faults, is dropped and not called again, a later load included. The exception is written to its plugin's log.

Exceptions

ArgumentNullException

handler is null.

Subscribe(GameEventHandler<TArgs>)

Registers handler.

ISubscription Subscribe(GameEventHandler<TArgs> handler)

Parameters

handler GameEventHandler<TArgs>

Returns

ISubscription

Remarks

A handler that throws, or whose task faults, is dropped and not called again, a later load included. The exception is written to its plugin's log.

Exceptions

ArgumentNullException

handler is null.