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
handlerAsyncGameEventHandler<TArgs>
Returns
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
handlerisnull.
Subscribe(GameEventHandler<TArgs>)
Registers handler.
ISubscription Subscribe(GameEventHandler<TArgs> handler)
Parameters
handlerGameEventHandler<TArgs>
Returns
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
handlerisnull.