LootLocker Unreal Server SDK 7.1.1
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerServerPlayerProgressionRequest.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5#include "CoreMinimal.h"
9
10#include "LootLockerServerPlayerProgressionRequest.generated.h"
11
12//==================================================
13// Data Type Definitions
14//==================================================
15
16USTRUCT(BlueprintType)
18{
19 GENERATED_BODY()
23 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
24 FString Id = "";
28 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
29 FString Progression_key = "";
33 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
34 FString Progression_name = "";
38 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
39 FString Progression_id = "";
43 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
44 int32 Step = 0;
48 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
49 int32 Points = 0;
53 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
58 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
59 int32 Next_threshold = 0;
63 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
64 FString Last_level_up = "";
65};
66
67//==================================================
68// Response Definitions
69//==================================================
70
71USTRUCT(BlueprintType)
73{
74 GENERATED_BODY()
78 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
79 FString Id = "";
83 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
84 FString Progression_key = "";
88 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
89 FString Progression_name = "";
93 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
94 FString Progression_id = "";
98 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
99 int32 Step = 0;
103 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
104 int32 Points = 0;
108 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
113 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
114 int32 Next_threshold = 0;
118 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
119 FString Last_level_up = "";
120};
121
122USTRUCT(BlueprintType)
124{
125 GENERATED_BODY()
129 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
131};
132
133USTRUCT(BlueprintType)
135{
136 GENERATED_BODY()
140 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
145 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLockerServer")
147};
148
149//==================================================
150// C++ Delegate Definitions
151//==================================================
152
153/*
154 C++ response delegate for receiving a single player progression
155 */
157/*
158 C++ response delegate for receiving a list of player progressions
159 */
161/*
162 C++ response delegate for receiving a single player progression with rewards
163 */
165/*
166 C++ response delegate for deleting a progression. Will be empty if no error occured.
167 */
169
173
174UCLASS()
175class LOOTLOCKERSERVERSDK_API ULootLockerServerPlayerProgressionRequest : public UObject
176{
177 GENERATED_BODY()
178 public:
180
181 static FString GetProgressionsForPlayer(int PlayerID, const FLootLockerServerPlayerProgressionListResponseDelegate& OnCompletedRequest);
182 static FString GetPaginatedProgressionsForPlayer(int PlayerID, int32 Count, const FString& After, const FLootLockerServerPlayerProgressionListResponseDelegate& OnCompletedRequest);
183 static FString GetProgressionForPlayerByKey(int PlayerID, const FString& ProgressionKey, const FLootLockerServerSinglePlayerProgressionResponseDelegate& OnCompletedRequest);
184 static FString AddPointsToProgressionForPlayer(int PlayerID, const FString& ProgressionKey, int32 Amount, const FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate& OnCompletedRequest);
185 static FString SubtractPointsFromProgressionForPlayer(int PlayerID, const FString& ProgressionKey, int32 Amount, const FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate& OnCompletedRequest);
186 static FString ResetProgressionForPlayer(int PlayerID, const FString& ProgressionKey, const FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate& OnCompletedRequest);
187 static FString DeleteProgressionForPlayer(int PlayerID, const FString& ProgressionKey, const FLootLockerServerDeletePlayerProgressionResponseDelegate& OnCompletedRequest);
188};
void(* FLootLockerServerDeletePlayerProgressionResponseDelegate)(FLootLockerServerResponse)
Definition LootLockerServerPlayerProgressionRequest.h:168
void(* FLootLockerServerPlayerProgressionListResponseDelegate)(FLootLockerServerPlayerProgressionListResponse)
Definition LootLockerServerPlayerProgressionRequest.h:160
void(* FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate)(FLootLockerServerSinglePlayerProgressionWithRewardsResponse)
Definition LootLockerServerPlayerProgressionRequest.h:164
void(* FLootLockerServerSinglePlayerProgressionResponseDelegate)(FLootLockerServerSinglePlayerProgressionResponse)
Definition LootLockerServerPlayerProgressionRequest.h:156
static FString GetProgressionsForPlayer(int PlayerID, const FLootLockerServerPlayerProgressionListResponseDelegate &OnCompletedRequest)
static FString AddPointsToProgressionForPlayer(int PlayerID, const FString &ProgressionKey, int32 Amount, const FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate &OnCompletedRequest)
static FString GetPaginatedProgressionsForPlayer(int PlayerID, int32 Count, const FString &After, const FLootLockerServerPlayerProgressionListResponseDelegate &OnCompletedRequest)
static FString ResetProgressionForPlayer(int PlayerID, const FString &ProgressionKey, const FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate &OnCompletedRequest)
static FString SubtractPointsFromProgressionForPlayer(int PlayerID, const FString &ProgressionKey, int32 Amount, const FLootLockerServerSinglePlayerProgressionWithRewardsResponseDelegate &OnCompletedRequest)
static FString DeleteProgressionForPlayer(int PlayerID, const FString &ProgressionKey, const FLootLockerServerDeletePlayerProgressionResponseDelegate &OnCompletedRequest)
static FString GetProgressionForPlayerByKey(int PlayerID, const FString &ProgressionKey, const FLootLockerServerSinglePlayerProgressionResponseDelegate &OnCompletedRequest)
Pagination data for key based pagination This is used for methods that have a "count" and an "after" ...
Definition LootLockerServerResponse.h:106
Definition LootLockerServerPlayerProgressionRequest.h:135
TArray< FLootLockerServerPlayerProgression > Items
List of progression items according to the current pagination settings.
Definition LootLockerServerPlayerProgressionRequest.h:146
FLootLockerServerKeyBasedPagination Pagination
The current pagination data of the requested data.
Definition LootLockerServerPlayerProgressionRequest.h:141
Definition LootLockerServerPlayerProgressionRequest.h:18
int32 Previous_threshold
The number of points needed to enter the current step of the progression (already cleared by the play...
Definition LootLockerServerPlayerProgressionRequest.h:54
FString Progression_id
The ULID of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:39
int32 Next_threshold
The number of points needed to enter the next step of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:59
int32 Points
How many points this player has in this progression.
Definition LootLockerServerPlayerProgressionRequest.h:49
FString Id
The ID of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:24
FString Last_level_up
The time of the last level up.
Definition LootLockerServerPlayerProgressionRequest.h:64
int32 Step
Which step (steps are configured in the console) of the progression the player is on.
Definition LootLockerServerPlayerProgressionRequest.h:44
FString Progression_key
The key of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:29
FString Progression_name
The name of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:34
Definition LootLockerServerProgressionGenericTypes.h:135
The base response for all LootLocker Server responses.
Definition LootLockerServerResponse.h:67
Definition LootLockerServerPlayerProgressionRequest.h:73
int32 Step
Which step (steps are configured in the console) of the progression the player is on.
Definition LootLockerServerPlayerProgressionRequest.h:99
int32 Points
How many points this player has in this progression.
Definition LootLockerServerPlayerProgressionRequest.h:104
FString Last_level_up
The time of the last level up.
Definition LootLockerServerPlayerProgressionRequest.h:119
int32 Next_threshold
The number of points needed to enter the next step of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:114
FString Id
The ID of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:79
int32 Previous_threshold
The number of points needed to enter the current step of the progression (already cleared by the play...
Definition LootLockerServerPlayerProgressionRequest.h:109
FString Progression_id
The ULID of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:94
FString Progression_name
The name of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:89
FString Progression_key
The key of the progression.
Definition LootLockerServerPlayerProgressionRequest.h:84
Definition LootLockerServerPlayerProgressionRequest.h:124
TArray< FLootLockerServerProgressionTier > Awarded_tiers
A list of the tiers that were awarded as an effect of the progression state change.
Definition LootLockerServerPlayerProgressionRequest.h:130