Interface IOpenModHost
Represents a game or anything else that hosts OpenMod.
Inherited Members
Namespace: OpenMod.API
Assembly: OpenMod.API.dll
Syntax
public interface IOpenModHost : IOpenModComponent
Methods
| Improve this Doc View SourceHasCapability(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 |
InitAsync()
Initializes the host.
Declaration
Task InitAsync()
Returns
Type | Description |
---|---|
Task |
PerformHardReloadAsync()
Hard reloads OpenMod binaries from disk. Used upgrading OpenMod without restarting.
Declaration
Task PerformHardReloadAsync()
Returns
Type | Description |
---|---|
Task |
ShutdownAsync()
Shuts the host down gracefully.
Declaration
Task ShutdownAsync()
Returns
Type | Description |
---|---|
Task |