Class Interop
Used to help with mod interop
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class Interop
Methods
| Edit this page View SourceGetModAssembly(string)
Gets the assembly of a mod by its name.
Declaration
public static Assembly GetModAssembly(string modName)
Parameters
Type | Name | Description |
---|---|---|
string | modName | The name of the mod to retrieve the assembly for. |
Returns
Type | Description |
---|---|
Assembly | The assembly of the mod with the specified name, or null if not found. |
GetModByName(string)
Gets a mod by its name.
Declaration
public static IMod GetModByName(string modName)
Parameters
Type | Name | Description |
---|---|---|
string | modName | The name of the mod to retrieve. |
Returns
Type | Description |
---|---|
IMod | The mod with the specified name, or null if not found. |