Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
added default WorldContext to function libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Turupawn committed Oct 8, 2019
1 parent 7e37e0f commit f339828
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Source/modio/Public/ModioFunctionLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<FModioInstalledMod> &InstalledMods);

UFUNCTION(BlueprintPure, Category = "mod.io")
UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject"))
static void ModioGetAllDownloadedMods(UObject *WorldContextObject, TArray<int32> &DownloadedMods);

UFUNCTION(BlueprintPure, Category = "mod.io")
UFUNCTION(BlueprintPure, Category = "mod.io", meta = (WorldContext="WorldContextObject"))
static void ModioGetModDownloadQueue(UObject *WorldContextObject, TArray<FModioQueuedModDownload> &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<FModioQueuedModfileUpload> &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<int32> &ModIds);
};

0 comments on commit f339828

Please sign in to comment.