LootLocker Unreal Server SDK 6.5.0
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerServerStorageRequest.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5#include "CoreMinimal.h"
6
8
9#include "LootLockerServerStorageRequest.generated.h"
10
11//==================================================
12// Data Type Definitions
13//==================================================
14
15USTRUCT(BlueprintType)
17{
18 GENERATED_BODY()
20
21 FLootLockerServerPlayerPersistentStorageKeyValueSet(const FString& InKey, const FString& InValue, bool InIsPublic)
22 : Key(InKey), Value(InValue), Is_public(InIsPublic)
23 {
24 }
28 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
29 FString Key = "";
33 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
34 FString Value = "";
38 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
39 bool Is_public = false;
40};
41
42USTRUCT(BlueprintType)
44{
45 GENERATED_BODY()
47
48 FLootLockerServerPlayerPersistentStorageKeyValueSetWithOrder(const FString& InKey, const FString& InValue, bool InIsPublic, int32 InOrder)
49 : FLootLockerServerPlayerPersistentStorageKeyValueSet(InKey, InValue, InIsPublic), Order(InOrder)
50 {
51 }
55 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
56 int Order = 0;
57};
58
62USTRUCT(BlueprintType)
64{
65 GENERATED_BODY()
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
70 int Player_id = 0;
74 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
76};
77
81USTRUCT(BlueprintType)
83{
84 GENERATED_BODY()
88 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
89 int Player_id = 0;
93 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
95};
96
100USTRUCT(BlueprintType)
102{
103 GENERATED_BODY()
107 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
108 int Player_id = 0;
112 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
114};
115
120USTRUCT(BlueprintType)
122{
123 GENERATED_BODY()
127 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
128 int Player_id = 0;
132 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
134};
135
136//==================================================
137// Request Definitions
138//==================================================
139
140USTRUCT(BlueprintType)
142{
143 GENERATED_BODY()
147 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
149};
150
151USTRUCT(BlueprintType)
153{
154 GENERATED_BODY()
158 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
159 TArray<int> Player_ids;
163 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
164 TArray<FString> Keys;
165};
166
167//==================================================
168// Response Definitions
169//==================================================
170
171USTRUCT(BlueprintType)
173{
174 GENERATED_BODY()
178 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
180};
181
182USTRUCT(BlueprintType)
184{
185 GENERATED_BODY()
186
187
190 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
192};
193
194USTRUCT(BlueprintType)
196{
197 GENERATED_BODY()
201 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
203};
204
208USTRUCT(BlueprintType)
213
214//==================================================
215// C++ Delegate Definitions
216//==================================================
217
218/*
219 C++ response delegate for fetching persistent storage for player(s)
220 */
222
223/*
224 C++ response delegate for fetching persistent storage for player(s) and key(s)
225 */
227
228/*
229 C++ response delegate for updating persistent storage for player(s) and key(s)
230 */
232
233/*
234 C++ response delegate for deleting persistent storage for player(s) and key(s)
235 */
237
242UCLASS()
243class LOOTLOCKERSERVERSDK_API ULootLockerServerStorageRequest : public UObject
244{
245 GENERATED_BODY()
246
247 public:
249 static FString GetPersistentStorageForPlayers(TArray<int> PlayerIDs, const FLootLockerServerGetPersistentStorageForPlayersResponseDelegate& OnCompleteResponse);
250 static FString GetPublicPersistentStorageForPlayersAndKeys(TArray<int> PlayerIDs, TArray<FString> Keys, const FLootLockerServerGetPublicPersistentStorageForPlayersAndKeysResponseDelegate& OnCompleteResponse);
251 static FString UpdatePersistentStorageForPlayersAndKeys(TArray<FLootLockerServerPlayerPersistentStorageEntry_NamedSets> StorageEntriesToUpdate, const FLootLockerServerUpdatePersistentStorageForPlayersAndKeysResponseDelegate& OnCompleteResponse);
252 static FString DeletePersistentStorageForPlayersAndKeys(TArray<int> PlayerIDs, TArray<FString> Keys, const FLootLockerServerDeletePersistentStorageForPlayersAndKeysResponseDelegate& OnCompleteResponse);
253};
void(* FLootLockerServerGetPersistentStorageForPlayersResponseDelegate)(FLootLockerServerGetPersistentStorageForPlayersResponse)
Definition LootLockerServerStorageRequest.h:221
void(* FLootLockerServerUpdatePersistentStorageForPlayersAndKeysResponseDelegate)(FLootLockerServerUpdatePersistentStorageForPlayersAndKeysResponse)
Definition LootLockerServerStorageRequest.h:231
void(* FLootLockerServerDeletePersistentStorageForPlayersAndKeysResponseDelegate)(FLootLockerServerDeletePersistentStorageForPlayersAndKeysResponse)
Definition LootLockerServerStorageRequest.h:236
void(* FLootLockerServerGetPublicPersistentStorageForPlayersAndKeysResponseDelegate)(FLootLockerServerGetPublicPersistentStorageForPlayersAndKeysResponse)
Definition LootLockerServerStorageRequest.h:226
Definition LootLockerServerStorageRequest.h:244
static FString DeletePersistentStorageForPlayersAndKeys(TArray< int > PlayerIDs, TArray< FString > Keys, const FLootLockerServerDeletePersistentStorageForPlayersAndKeysResponseDelegate &OnCompleteResponse)
static FString UpdatePersistentStorageForPlayersAndKeys(TArray< FLootLockerServerPlayerPersistentStorageEntry_NamedSets > StorageEntriesToUpdate, const FLootLockerServerUpdatePersistentStorageForPlayersAndKeysResponseDelegate &OnCompleteResponse)
static FString GetPersistentStorageForPlayers(TArray< int > PlayerIDs, const FLootLockerServerGetPersistentStorageForPlayersResponseDelegate &OnCompleteResponse)
static FString GetPublicPersistentStorageForPlayersAndKeys(TArray< int > PlayerIDs, TArray< FString > Keys, const FLootLockerServerGetPublicPersistentStorageForPlayersAndKeysResponseDelegate &OnCompleteResponse)
Response for deletion of persistent storage for player(s) and key(s), will be empty on success.
Definition LootLockerServerStorageRequest.h:210
Definition LootLockerServerStorageRequest.h:173
Definition LootLockerServerStorageRequest.h:184
Describes a set of key-value pairs that are stored for a player, the appendix _NamedItems is due to t...
Definition LootLockerServerStorageRequest.h:83
Describes a set of key-value pairs that are stored for a player, the appendix _NamedSets is due to th...
Definition LootLockerServerStorageRequest.h:64
Describes a set of key-value pairs that are stored for a player, the appendix _NamedStorage is due to...
Definition LootLockerServerStorageRequest.h:102
Definition LootLockerServerStorageRequest.h:44
FLootLockerServerPlayerPersistentStorageKeyValueSetWithOrder(const FString &InKey, const FString &InValue, bool InIsPublic, int32 InOrder)
Definition LootLockerServerStorageRequest.h:48
Definition LootLockerServerStorageRequest.h:17
FLootLockerServerPlayerPersistentStorageKeyValueSet(const FString &InKey, const FString &InValue, bool InIsPublic)
Definition LootLockerServerStorageRequest.h:21
Describes a set of key-value pairs that are stored for a player, the appendix _NamedSets is due to th...
Definition LootLockerServerStorageRequest.h:122
Definition LootLockerServerStorageRequest.h:142
The base response for all LootLocker Server responses.
Definition LootLockerServerResponse.h:67
Definition LootLockerServerStorageRequest.h:196