Table of Contents

Class HookEventFactory

Namespace
Anvil.API.Events
Assembly
NWN.Anvil.dll

Provides a base implementation for native function hook events.
See the documentation on FunctionHooks for how to use this class.

[ServiceBinding(typeof(IEventFactory))]
public abstract class HookEventFactory : IEventFactory<NullRegistrationData>, IEventFactory, IDisposable
Inheritance
HookEventFactory
Implements
Derived
Inherited Members
Extension Methods

Properties

EventService
HookService
VirtualMachine

Methods

Dispose()

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

ProcessEvent<TEvent>(EventCallbackType, TEvent?, bool)

Processes event callbacks, optionally within the NWScript VM context.

RequestHooks()

Requests and returns the native hooks required for this factory. Called once on first subscription.