Table of Contents

Namespace Anvil.Services

Classes

ChatService
DevastatingCriticalData
DialogService
EncodingService

Manages string conversion for NWN.Core, NWN.Native and the StringHelper utility class.

EnforceLegalCharacterService
EventService
FeedbackService

Allows combat log, feedback and journal update messages to be hidden globally or per player.

FunctionHook<T>
HomeStorage

Full directory paths for the anvil home directory.

HookOrder
HookService

An advanced service for hooking native NWN functions.

InjectAttribute

Indicates a property as a service dependency to be injected.

InjectionService
NativeFunctionAttribute
ObjectStorage
ObjectStorageService
OnELCCustomCheck
OnELCFeatValidationFailure
OnELCItemValidationFailure
OnELCLevelValidationFailure
OnELCSkillValidationFailure
OnELCSpellValidationFailure
OnELCValidationBefore
OnELCValidationFailure
OnELCValidationSuccess
PlayerNameOverride
PlayerNameOverrideService
PluginStorageService

Manages plugin data stored in the Anvil home directory.
Use this service to get a path for reading and writing configs or data for your plugin.

ResourceManager
ScheduledTask
SchedulerService

A service for scheduling tasks to run with a timed delay and/or repeat with a regular interval.

ScriptCallbackHandle

A handle for a native NSS script callback.

ScriptHandleFactory

A service for registering C# functions as script handlers dynamically.

ScriptHandlerAttribute

Indicates that the method in the service should be used to handle all NWScript calls to the specified ScriptName.

ServiceBindingAttribute

The main attribute used to define new services and run them.
Each class flagged with a ServiceBindingAttribute will be automatically constructed on startup, and any services specified in the constructor will be injected as dependencies.

ServiceBindingOptionsAttribute

Additional service binding options.

TargetModeSettings

Configuration options for target mode. See EnterTargetMode(Action<OnPlayerTarget>, TargetModeSettings?), TryEnterTargetMode(Action<OnPlayerTarget>, TargetModeSettings?).

TargetingData

Configuration options for the target helper. See TargetingData, SetSpellTargetingData(TargetingData).

TwoDimArrayFactory

Creates a deserialized 2da structure using a ITwoDimArray converter.

WeaponService

Structs

MaxRangedAttackDistanceOverride
ObjectStorageValue<T>

Interfaces

IInitializable

Interface that is invoked after all services have been initialised.

ILateDisposable

Interface that is invoked after the server has been shutdown. Not called during hot reloads.

IScriptDispatcher

Implement in a service to add a custom handler for event scripts.

IServiceManager

The interface that manages all core, anvil and plugin services.

ITwoDimArray

Implement this interface to use the class as a deserialization target for Get2DA<T>(string, bool).

IUpdateable

Implement this interface in your service to get a callback each server loop.

Enums

BindingPriority
ChatChannel
CombatLogMessage
DialogState
EventCallbackType
FeedbackMessage
FilterMode
InjectPropertyTypes
Language
LogMode
NodeType
OverrideNameType
ScriptHandleResult
ScriptType
ValidationFailureSubType
ValidationFailureType
VisibilityMode

Delegates

TwoDimEntry