LootLocker Unreal Server SDK 7.1.1
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 }
25
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 }
52
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
241
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
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
TArray< FLootLockerServerPlayerPersistentStorageEntry_NamedItems > Items
The persistent storage retrieved for the requested player ids.
Definition LootLockerServerStorageRequest.h:179
Definition LootLockerServerStorageRequest.h:184
TArray< FLootLockerServerPlayerPersistentStorageEntry_NamedStorage > Storages
The persistent publicly available storage retrieved for the requested player ids and keys.
Definition LootLockerServerStorageRequest.h:191
Describes a set of key-value pairs that are stored for a player, the appendix _NamedItems is due to t...
Definition LootLockerServerStorageRequest.h:83
TArray< FLootLockerServerPlayerPersistentStorageKeyValueSet > Items
A list of key value pairs that are stored for the player.
Definition LootLockerServerStorageRequest.h:94
int Player_id
The player ID for which these items are being stored.
Definition LootLockerServerStorageRequest.h:89
Describes a set of key-value pairs that are stored for a player, the appendix _NamedSets is due to th...
Definition LootLockerServerStorageRequest.h:64
int Player_id
The player ID for which these sets are being stored.
Definition LootLockerServerStorageRequest.h:70
TArray< FLootLockerServerPlayerPersistentStorageKeyValueSet > Sets
A list of key value pairs that are stored for the player.
Definition LootLockerServerStorageRequest.h:75
Describes a set of key-value pairs that are stored for a player, the appendix _NamedStorage is due to...
Definition LootLockerServerStorageRequest.h:102
TArray< FLootLockerServerPlayerPersistentStorageKeyValueSet > Storage
A list of key value pairs that are stored for the player.
Definition LootLockerServerStorageRequest.h:113
int Player_id
The player ID for which this storage applies.
Definition LootLockerServerStorageRequest.h:108
TArray< int > Player_ids
A list of Player IDs for whom to retrieve the public storage.
Definition LootLockerServerStorageRequest.h:159
TArray< FString > Keys
A filter for the keys to retrieve for the requested players.
Definition LootLockerServerStorageRequest.h:164
Definition LootLockerServerStorageRequest.h:44
int Order
Used to de-duplicate keys.
Definition LootLockerServerStorageRequest.h:56
FLootLockerServerPlayerPersistentStorageKeyValueSetWithOrder(const FString &InKey, const FString &InValue, bool InIsPublic, int32 InOrder)
Definition LootLockerServerStorageRequest.h:48
FLootLockerServerPlayerPersistentStorageKeyValueSetWithOrder()
Definition LootLockerServerStorageRequest.h:46
Definition LootLockerServerStorageRequest.h:17
FLootLockerServerPlayerPersistentStorageKeyValueSet()
Definition LootLockerServerStorageRequest.h:19
FLootLockerServerPlayerPersistentStorageKeyValueSet(const FString &InKey, const FString &InValue, bool InIsPublic)
Definition LootLockerServerStorageRequest.h:21
FString Key
The key for this set, used to access the value.
Definition LootLockerServerStorageRequest.h:29
bool Is_public
Whether this key is public or not.
Definition LootLockerServerStorageRequest.h:39
FString Value
The Value of this set, this is the data you want to store.
Definition LootLockerServerStorageRequest.h:34
Describes a set of key-value pairs that are stored for a player, the appendix _NamedSets is due to th...
Definition LootLockerServerStorageRequest.h:122
int Player_id
The player ID for which this storage applies.
Definition LootLockerServerStorageRequest.h:128
TArray< FLootLockerServerPlayerPersistentStorageKeyValueSetWithOrder > Sets
A list of key value pairs that are stored for the player.
Definition LootLockerServerStorageRequest.h:133
Definition LootLockerServerStorageRequest.h:142
TArray< FLootLockerServerPlayerPersistentStorageUpdateEntryOrdered > Payload
The payload of the request, a list of persistent storage update items.
Definition LootLockerServerStorageRequest.h:148
The base response for all LootLocker Server responses.
Definition LootLockerServerResponse.h:67
Definition LootLockerServerStorageRequest.h:196
TArray< FLootLockerServerPlayerPersistentStorageEntry_NamedItems > Items
The persistent storage retrieved for the updated player ids.
Definition LootLockerServerStorageRequest.h:202