Load a mod from the specified
Uri asynchronously.
A
ModHost will be created to manage the mod and returned as the result of the async operation.
The async operation will not be complete until all mods have finished loading.
Namespace:
UMod
Assembly:
UMod (in UMod.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static ModAsyncOperation<ModHost[]> LoadBatchAsync(
Uri[] paths,
bool autoActivate = true
)
Parameters
- paths
- Type: SystemUri
An array of Uri to load from - autoActivate (Optional)
- Type: SystemBoolean
Should the mods 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:
ModAsyncOperationModHostAn awaitable object containing progress and status information whose
Result value will be an array of hosts managing the load requests
See Also