Interface IModContext
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
CustomItems
ICustomItemService CustomItems { get; }
Property Value
Events
IModEvents Events { get; }
Property Value
Items
IItemService Items { get; }
Property Value
Localization
ILocalizationService Localization { get; }
Property Value
Log
IModLogger Log { get; }
Property Value
Metadata
ModMetadata Metadata { get; }