6#include "CoreMinimal.h"
7#include "Dom/JsonObject.h"
10#include "LootLockerMetadataRequestHandler.generated.h"
18UENUM(BlueprintType, Category =
"LootLocker")
40UENUM(BlueprintType, Category =
"LootLocker")
56UENUM(BlueprintType, Category =
"LootLocker")
72UENUM(BlueprintType, Category =
"LootLocker")
78 OnString = 0 UMETA(ToolTip=
"Triggered when the parsed entry is of type String. The String Value field will be populated"),
79 OnInteger = 1 UMETA(ToolTip =
"Triggered when the parsed entry is of type Integer (non decimal number). The Integer Value field will be populated"),
80 OnFloat = 2 UMETA(ToolTip =
"Triggered when the parsed entry is of type Float (decimal number). The Float Value field will be populated"),
81 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"),
82 OnBool = 4 UMETA(ToolTip =
"Triggered when the parsed entry is of type Bool. The Bool Value field will be populated"),
83 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"),
84 OnBase64 = 6 UMETA(ToolTip =
"Triggered when the parsed entry is of type Base64. The Base64 Value field will be populated"),
85 OnError = 7 UMETA(ToolTip =
"Triggered when the entry could not be parsed. The ErrorMessage Value field will be populated"),
97USTRUCT(BlueprintType, Category =
"LootLocker")
104 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
105 FString Content_type = "";
109 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
110 FString Content = "";
116USTRUCT(BlueprintType, Category = "LootLocker")
123 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
128 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
133 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
134 TArray<FString> Tags;
139 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
140 TArray<FString> Access;
144 LOOTLOCKERSDK_API
bool TryGetValueAsString(FString& Output) const;
148 LOOTLOCKERSDK_API
bool TryGetValueAsFloat(
float& Output) const;
152 LOOTLOCKERSDK_API
bool TryGetValueAsInteger(
int& Output) const;
156 LOOTLOCKERSDK_API
bool TryGetValueAsBool(
bool& Output) const;
160 LOOTLOCKERSDK_API
bool TryGetRawValue(TSharedPtr<FJsonValue>& Output) const;
164 LOOTLOCKERSDK_API
bool TryGetSerializedValue(FString& Output) const;
168 LOOTLOCKERSDK_API
bool TryGetValueAsJsonObject(TSharedPtr<FJsonObject>& Output) const;
172 LOOTLOCKERSDK_API
bool TryGetValueAsJsonArray(TArray<TSharedPtr<FJsonValue>>& Output) const;
181 LOOTLOCKERSDK_API
void SetValueAsString(const FString& Value);
185 LOOTLOCKERSDK_API
void SetValueAsFloat(const
float& Value);
189 LOOTLOCKERSDK_API
void SetValueAsInteger(const
int& Value);
193 LOOTLOCKERSDK_API
void SetValueAsBool(const
bool& Value);
197 LOOTLOCKERSDK_API
void SetRawValue(const TSharedPtr<FJsonValue>& Value);
202 LOOTLOCKERSDK_API
bool SetValueAsUStruct(const T& Value);
206 LOOTLOCKERSDK_API
void SetValueAsJsonObject(const FJsonObject& Value);
210 LOOTLOCKERSDK_API
void SetValueAsJsonArray(const TArray<TSharedPtr<FJsonValue>>& Value);
219 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeStringEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const FString& Value);
223 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeFloatEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const
float& Value);
227 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeIntegerEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const
int Value);
231 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeBoolEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const
bool Value);
239 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeJsonObjectEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const FJsonObject& Value);
243 static LOOTLOCKERSDK_API
FLootLockerMetadataEntry MakeJsonArrayEntry(const FString& Key, const TArray<FString>& Tags, const TArray<FString>& Access, const TArray<TSharedPtr<FJsonValue>>& Value);
251 void LOOTLOCKERSDK_API _INTERNAL_SetJsonRepresentation(const FJsonObject& obj);
255 FJsonObject EntryAsJson;
261USTRUCT(BlueprintType, Category = "LootLocker")
268 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
273 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
280USTRUCT(BlueprintType, Category = "LootLocker")
287 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
292 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
297 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
304USTRUCT(BlueprintType, Category = "LootLocker")
311 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
316 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
321 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
322 TArray<FString> Keys;
328USTRUCT(BlueprintType, Category = "LootLocker")
335 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
340 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
341 FString Source_id = "";
345 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
350 int LOOTLOCKERSDK_API __INTERNAL_GetEntryIndexByKey(const FString& Key) const;
354 void LOOTLOCKERSDK_API __INTERNAL_GenerateKeyMap();
356 TMap<FString,
int> KeyToEntryIndex = TMap<FString,
int>();
365USTRUCT(BlueprintType, Category = "LootLocker")
372 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
379USTRUCT(BlueprintType, Category = "LootLocker")
386 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
391 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
402USTRUCT(BlueprintType, Category = "LootLocker")
409 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
414 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
419 int LOOTLOCKERSDK_API __INTERNAL_GetEntryIndexByKey(const FString& Key) const;
423 void LOOTLOCKERSDK_API __INTERNAL_GenerateKeyMap();
425 TMap<FString,
int> KeyToEntryIndex = TMap<FString,
int>();
431USTRUCT(BlueprintType, Category = "LootLocker")
438 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
445USTRUCT(BlueprintType, Category = "LootLocker")
452 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
457 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
462 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
463 FString Source_id = "";
469USTRUCT(BlueprintType, Category = "LootLocker")
476 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
@ Source
Order by the source that granted the item.
Represents a single typed metadata entry with a key, value type, tags, and access level,...
Definition LootLockerMetadataRequestHandler.h:118
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:263