This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Listeners
Ahmed Castro edited this page Jul 13, 2020
·
3 revisions
Registers a function to be called every time a mod finished downloading.
Name | Type | Description |
---|---|---|
ModId | int32 |
Mod's unique identifier. |
Delegate | FModioListenerDelegate |
FModioListenerDelegate containing the Id of the Mod that was just downloaded. This is called when the process finished. |
Modio->SetModDownloadListener(FModioListenerDelegate::CreateUObject(ModioManager, &UMyModioManager::OnModDownload));
// ...
void UMyModioManager::OnModDownload(int32 ResponseCode, int32 ModId)
{
// ResponseCode should be 200 when a mod was just downloaded
Modio->InstallDownloadedMods();
}
See also: SDK function
Registers a function to be called every time a modfile upload finishes.
Name | Type | Description |
---|---|---|
ModId | int32 |
Mod's unique identifier. |
Delegate | FModioListenerDelegate |
FModioListenerDelegate containing the Id of the Mod that was just uploaded. This is called when the process finished. |
Modio->SetModUploadListener(FModioOnModDownloadDelegate::CreateUObject(ModioManager, &UMyModioManager::OnModUpload));
// ...
void UMyModioManager::OnModUpload(int32 ResponseCode, int32 ModId)
{
// ResponseCode should be 200 when a mod was just uploaded
}
See also: SDK function
- Process and initialization
- User authentication
- Browsing
- Subscriptions
- Listeners
- Schemas
- Delegates