Skip to content

Commit bbb4c08

Browse files
JohannesLootkirre-bylund
authored andcommitted
Added function for "registering" a player progression
1 parent 000b478 commit bbb4c08

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,16 @@ public static void DeletePlayerProgression(string progressionKey, Action<LootLoc
18381838
LootLockerServerRequest.CallAPI(endpoint, LootLockerHTTPMethod.DELETE, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
18391839
}
18401840

1841+
/// <summary>
1842+
/// Registers a player progression if it doesn't exist. Same as adding 0 points to a progression.
1843+
/// </summary>
1844+
/// <param name="progressionKey">Progression key</param>
1845+
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerPlayerProgressionWithRewards</param>
1846+
public static void RegisterPlayerProgression(string progressionKey, Action<LootLockerPlayerProgressionWithRewardsResponse> onComplete)
1847+
{
1848+
AddPointsToPlayerProgression(progressionKey, 0, onComplete);
1849+
}
1850+
18411851
#endregion
18421852

18431853
#region Character

0 commit comments

Comments
 (0)