OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Interface IOpenModHost

Represents a game or anything else that hosts OpenMod.

Inherited Members
IOpenModComponent.OpenModComponentId
IOpenModComponent.WorkingDirectory
IOpenModComponent.IsComponentAlive
IOpenModComponent.LifetimeScope
IOpenModComponent.DataStore
Namespace: OpenMod.API
Assembly: OpenMod.API.dll
Syntax
public interface IOpenModHost : IOpenModComponent

Methods

| Improve this Doc View Source

HasCapability(String)

Checks if the host has a capability.

Declaration
bool HasCapability(string capability)
Parameters
Type Name Description
System.String capability
Returns
Type Description
System.Boolean
| Improve this Doc View Source

InitAsync()

Initializes the host.

Declaration
Task InitAsync()
Returns
Type Description
Task
| Improve this Doc View Source

PerformHardReloadAsync()

Hard reloads OpenMod binaries from disk. Used upgrading OpenMod without restarting.

Declaration
Task PerformHardReloadAsync()
Returns
Type Description
Task
| Improve this Doc View Source

ShutdownAsync()

Shuts the host down gracefully.

Declaration
Task ShutdownAsync()
Returns
Type Description
Task

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)