From f3398280f9e88a507f5851131c107abc3225c8e8 Mon Sep 17 00:00:00 2001 From: turupawn Date: Mon, 7 Oct 2019 18:19:08 -0600 Subject: [PATCH] added default WorldContext to function libraries --- Source/modio/Public/ModioFunctionLibrary.h | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Source/modio/Public/ModioFunctionLibrary.h b/Source/modio/Public/ModioFunctionLibrary.h index d9ec712..4d33297 100644 --- a/Source/modio/Public/ModioFunctionLibrary.h +++ b/Source/modio/Public/ModioFunctionLibrary.h @@ -18,66 +18,66 @@ class MODIO_API UModioFunctionLibrary : public UBlueprintFunctionLibrary // Process - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioProcess(UObject *WorldContextObject); // Configuration - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioSetModEventsPollInterval(UObject *WorldContextObject, int32 IntervalInSeconds); - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioSetUserEventsPollInterval(UObject *WorldContextObject, int32 IntervalInSeconds); // Authentication - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioLogout(UObject *WorldContextObject); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioIsLoggedIn(UObject *WorldContextObject, bool &IsLoggedIn); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioCurrentUser(UObject *WorldContextObject, FModioUser &User); - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void AuthenticateViaToken(UObject *WorldContextObject, const FString& AccessToken); // Downloads and installs - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetInstalledMod(UObject *WorldContextObject, int32 ModId, FString &Path, FModioMod &Mod); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetAllInstalledMods(UObject *WorldContextObject, TArray &InstalledMods); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetAllDownloadedMods(UObject *WorldContextObject, TArray &DownloadedMods); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetModDownloadQueue(UObject *WorldContextObject, TArray &QueuedMods); - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioInstallDownloadedMods(UObject *WorldContextObject); - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioAddModfile(UObject *WorldContextObject, int32 ModId, FModioModfileCreator ModfileCreator); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetModfileUploadQueue(UObject *WorldContextObject, TArray &UploadQueue); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetModState(UObject *WorldContextObject, int32 ModId, uint8 &ModState); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetCurrentUserModRating(UObject *WorldContextObject, int32 ModId, uint8 &ModRating); - UFUNCTION(BlueprintCallable, Category = "mod.io") + UFUNCTION(BlueprintCallable, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioPrioritizeModDownload(UObject *WorldContextObject, int32 ModId); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioIsCurrentUserSubscribed(UObject *WorldContextObject, int32 ModId, bool &IsSubscribed); - UFUNCTION(BlueprintPure, Category = "mod.io") + UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject")) static void ModioGetCurrentUserSubscriptions(UObject *WorldContextObject, TArray &ModIds); }; \ No newline at end of file