LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerPersistentStorageRequestHandler.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5
6#include "CoreMinimal.h"
9#include "JsonObjectConverter.h"
10#include "LootLockerPersistentStorageRequestHandler.generated.h"
11
12USTRUCT(BlueprintType)
14 GENERATED_BODY()
15 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
16 FString key = "";
17 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
18 FString value = "";
19 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
20 bool is_public = false;
21 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
22 int order = 0;
23};
24
25USTRUCT(BlueprintType)
27 GENERATED_BODY()
28 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
30};
31
32
33USTRUCT(BlueprintType)
35{
36 GENERATED_BODY()
37 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
39 TMap<FString, FString> Map;
40};
41
42USTRUCT(BlueprintType)
44{
45 GENERATED_BODY()
46 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
48};
49
52
56
58
61UCLASS()
62class LOOTLOCKERSDK_API ULootLockerPersistentStorageRequestHandler : public UObject
63{
64public:
65 GENERATED_BODY()
66
68
69 static FString GetEntirePersistentStorage(const FLootLockerPlayerData& PlayerData, const FPersistentStorageItemsResponseDelegate& OnCompletedRequest);
70
71 static FString GetItemFromPersistentStorage(const FLootLockerPlayerData& PlayerData, const FString& Key, const FPersistentStorageItemResponseDelegate& OnCompletedRequest);
72
74
76
77 static FString DeleteItemFromPersistentStorage(const FLootLockerPlayerData& PlayerData, const FString& Key, const FPersistentStorageItemsResponseDelegate& OnCompletedRequest);
78
79 static FString GetPlayerPersistentStorage(const FLootLockerPlayerData& PlayerData, const FString& PlayerId, const FPersistentStorageItemsResponseDelegate& OnCompletedRequest);
80};
Definition LootLockerPersistentStorageRequestHandler.h:63
static FString AddItemToPersistentStorage(const FLootLockerPlayerData &PlayerData, const FLootLockerPersistentStorageItem &Item, const FPersistentStorageItemResponseDelegate &OnCompletedRequest)
static FString DeleteItemFromPersistentStorage(const FLootLockerPlayerData &PlayerData, const FString &Key, const FPersistentStorageItemsResponseDelegate &OnCompletedRequest)
static FString GetItemFromPersistentStorage(const FLootLockerPlayerData &PlayerData, const FString &Key, const FPersistentStorageItemResponseDelegate &OnCompletedRequest)
static FString AddItemsToPersistentStorage(const FLootLockerPlayerData &PlayerData, const FLootLockerPersistentStorageItems &Items, const FPersistentStorageItemsResponseDelegate &OnCompletedRequest)
static FString GetEntirePersistentStorage(const FLootLockerPlayerData &PlayerData, const FPersistentStorageItemsResponseDelegate &OnCompletedRequest)
static FString GetPlayerPersistentStorage(const FLootLockerPlayerData &PlayerData, const FString &PlayerId, const FPersistentStorageItemsResponseDelegate &OnCompletedRequest)
void(* FPersistentStorageItemResponseDelegate)(FLootLockerPersistentStorageItemResponse)
C++ response callback delegate; receives an FLootLockerPersistentStorageItemResponse result.
Definition LootLockerPersistentStorageRequestHandler.h:55
void(* FPersistentStorageItemsResponseDelegate)(FLootLockerPersistentStorageItemsResponse)
C++ response callback delegate; receives an FLootLockerPersistentStorageItemsResponse result.
Definition LootLockerPersistentStorageRequestHandler.h:53
Definition LootLockerPersistentStorageRequestHandler.h:44
Definition LootLockerPersistentStorageRequestHandler.h:13
Definition LootLockerPersistentStorageRequestHandler.h:35
Definition LootLockerPersistentStorageRequestHandler.h:26
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19