Handles bootstrap and interop between NWN, NWN.Core and the Anvil API. The entry point of the implementing module should point to this class.
Until Init(IntPtr, int, IServiceManager) is called, all APIs are unavailable for usage.
More...
Handles bootstrap and interop between NWN, NWN.Core and the Anvil API. The entry point of the implementing module should point to this class.
Until Init(IntPtr, int, IServiceManager) is called, all APIs are unavailable for usage.
◆ GetService< T >()
static ? T Anvil.AnvilCore.GetService< T > |
( |
| ) |
|
|
inlinestatic |
Gets the specified anvil service instance.
- Template Parameters
-
T | The service type to get. |
- Returns
- The associated anvil service instance.
◆ Init()
static unsafe int Anvil.AnvilCore.Init |
( |
IntPtr |
arg, |
|
|
int |
argLength, |
|
|
IServiceManager? |
serviceManager = default |
|
) |
| |
|
inlinestatic |
Entrypoint to start Anvil.
- Parameters
-
arg | The NativeHandles pointer, provided by the NWNX bootstrap entry point. |
argLength | The size of the NativeHandles bootstrap structure, provided by the NWNX entry point. |
serviceManager | A custom service manager to use instead of the default AnvilServiceManager. For advanced users only. |
- Returns
- The init result code to return back to NWNX.
◆ Reload()
static void Anvil.AnvilCore.Reload |
( |
| ) |
|
|
inlinestatic |
Initiates a complete reload of plugins and Anvil services.
This will reload all plugins.
The documentation for this class was generated from the following files:
- NWN.Anvil/src/main/AnvilCore.cs
- NWN.Anvil/src/main/AnvilCore.FunctionHandlers.cs
- NWN.Anvil/src/main/AnvilCore.RuntimeInfo.cs