Interface IModContext

Namespace
FTK2.ModAPI.Core
Assembly
FTK2.ModAPI.dll

Owner-scoped access to logging, lifecycle events, base items, custom items, custom abilities, and localization.

public interface IModContext

Remarks

Runtime services are main-thread-only. Retain the context for the mod lifetime; when it also implements IModSession, dispose it during explicit unload or application shutdown.

Properties

Abilities

ICustomAbilityService Abilities { get; }

Property Value

ICustomAbilityService

CustomItems

ICustomItemService CustomItems { get; }

Property Value

ICustomItemService

Events

IModEvents Events { get; }

Property Value

IModEvents

Items

IItemService Items { get; }

Property Value

IItemService

Localization

ILocalizationService Localization { get; }

Property Value

ILocalizationService

Log

IModLogger Log { get; }

Property Value

IModLogger

Metadata

ModMetadata Metadata { get; }

Property Value

ModMetadata