6#include "CoreMinimal.h"
7#include "Dom/JsonObject.h"
10#include "LootLockerMetadataRequestHandler.generated.h"
18UENUM(BlueprintType, Category =
"LootLocker")
38UENUM(BlueprintType, Category =
"LootLocker")
54UENUM(BlueprintType, Category =
"LootLocker")
70UENUM(BlueprintType, Category =
"LootLocker")
76 OnString = 0 UMETA(ToolTip=
"Triggered when the parsed entry is of type String. The String Value field will be populated"),
77 OnInteger = 1 UMETA(ToolTip =
"Triggered when the parsed entry is of type Integer (non decimal number). The Integer Value field will be populated"),
78 OnFloat = 2 UMETA(ToolTip =
"Triggered when the parsed entry is of type Float (decimal number). The Float Value field will be populated"),
79 OnNumber = 3 UMETA(ToolTip =
"Triggered when the parsed entry is a number but not a regular integer or float (could for example be too big to fit in either of those types, or the decimal precision is higher than can be solved with either of the types). The NumberString value field will be populated"),
80 OnBool = 4 UMETA(ToolTip =
"Triggered when the parsed entry is of type Bool. The Bool Value field will be populated"),
81 OnJson = 5 UMETA(ToolTip =
"Triggered when the parsed entry is of type Json. The JsonString Value field will be populated with the string representation of the json, convert to a JSON object or straight to a USTRUCT of your design"),
82 OnBase64 = 6 UMETA(ToolTip =
"Triggered when the parsed entry is of type Base64. The Base64 Value field will be populated"),
83 OnError = 7 UMETA(ToolTip =
"Triggered when the entry could not be parsed. The ErrorMessage Value field will be populated"),
95USTRUCT(BlueprintType, Category =
"LootLocker")
102 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
103 FString Content_type = "";
107 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
108 FString Content = "";
114USTRUCT(BlueprintType, Category = "LootLocker")
121 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
126 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
131 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
132 TArray<FString> Tags;
137 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
138 TArray<FString> Access;
142 LOOTLOCKERSDK_API
bool TryGetValueAsString(FString& Output) const;
146 LOOTLOCKERSDK_API
bool TryGetValueAsFloat(
float& Output) const;
150 LOOTLOCKERSDK_API
bool TryGetValueAsInteger(
int& Output) const;
154 LOOTLOCKERSDK_API
bool TryGetValueAsBool(
bool& Output) const;
158 LOOTLOCKERSDK_API
bool TryGetRawValue(TSharedPtr<FJsonValue>& Output) const;
162 LOOTLOCKERSDK_API
bool TryGetSerializedValue(FString& Output) const;
166 LOOTLOCKERSDK_API
bool TryGetValueAsJsonObject(TSharedPtr<FJsonObject>& Output) const;
170 LOOTLOCKERSDK_API
bool TryGetValueAsJsonArray(TArray<TSharedPtr<FJsonValue>>& Output) const;
179 LOOTLOCKERSDK_API
void SetValueAsString(const FString& Value);
183 LOOTLOCKERSDK_API
void SetValueAsFloat(const
float& Value);
187 LOOTLOCKERSDK_API
void SetValueAsInteger(const
int& Value);
191 LOOTLOCKERSDK_API
void SetValueAsBool(const
bool& Value);
195 LOOTLOCKERSDK_API
void SetRawValue(const TSharedPtr<FJsonValue>& Value);
200 LOOTLOCKERSDK_API
bool SetValueAsUStruct(const T& Value);
204 LOOTLOCKERSDK_API
void SetValueAsJsonObject(const FJsonObject& Value);
208 LOOTLOCKERSDK_API
void SetValueAsJsonArray(const TArray<TSharedPtr<FJsonValue>>& Value);
217 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeStringEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const FString& Value);
221 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeFloatEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const
float& Value);
225 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeIntegerEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const
int Value);
229 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeBoolEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const
bool Value);
237 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeJsonObjectEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const FJsonObject& Value);
241 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeJsonArrayEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const TArray<TSharedPtr<FJsonValue>>& Value);
249 void LOOTLOCKERSDK_API _INTERNAL_SetJsonRepresentation(const FJsonObject& obj);
253 FJsonObject EntryAsJson;
259USTRUCT(BlueprintType, Category = "LootLocker")
266 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
271 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
278USTRUCT(BlueprintType, Category = "LootLocker")
285 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
290 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
295 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
302USTRUCT(BlueprintType, Category = "LootLocker")
309 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
314 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
319 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
320 TArray<FString> Keys;
326USTRUCT(BlueprintType, Category = "LootLocker")
333 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
338 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
339 FString Source_id = "";
343 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
348 int LOOTLOCKERSDK_API __INTERNAL_GetEntryIndexByKey(const FString& Key) const;
352 void LOOTLOCKERSDK_API __INTERNAL_GenerateKeyMap();
354 TMap<FString,
int> KeyToEntryIndex = TMap<FString,
int>();
363USTRUCT(BlueprintType, Category = "LootLocker")
370 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
377USTRUCT(BlueprintType, Category = "LootLocker")
384 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
389 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
400USTRUCT(BlueprintType, Category = "LootLocker")
407 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
412 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
417 int LOOTLOCKERSDK_API __INTERNAL_GetEntryIndexByKey(const FString& Key) const;
421 void LOOTLOCKERSDK_API __INTERNAL_GenerateKeyMap();
423 TMap<FString,
int> KeyToEntryIndex = TMap<FString,
int>();
429USTRUCT(BlueprintType, Category = "LootLocker")
436 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
443USTRUCT(BlueprintType, Category = "LootLocker")
450 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
455 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
460 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
461 FString Source_id = "";
467USTRUCT(BlueprintType, Category = "LootLocker")
474 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
Represents a single typed metadata entry with a key, value type, tags, and access level,...
Definition LootLockerMetadataRequestHandler.h:116
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19
Identifies a metadata entry that caused an error during a set operation, by key and value type.
Definition LootLockerMetadataRequestHandler.h:261