Load all mods from the specified paths asynchronously.
A
ModHost array will be created to manage the mod and returned as the result of the async operation.
Namespace:
UMod
Assembly:
UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static ModAsyncOperation<ModHost> LoadAsync(
Uri path,
bool autoActivate = true
)
Parameters
- path
- Type: System.Uri
The Uri to load the mod from - autoActivate (Optional)
- Type: System.Boolean
Should the mod be automatially activated once loaded. See Activate(). Note that activation must be performed on the main thread which will block until completed
Return Value
Type:
ModAsyncOperation<ModHost>An awaitable object containing progress and status information whose
Result value will be the host managing the load
See Also