Skip to content

Commit bfe8a40

Browse files
JohannesLootkirre-bylund
authored andcommitted
Created an additional function that takes the optional parameters as input, the ycan easily be missed if they are at the end and as optional
1 parent f040b83 commit bfe8a40

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4018,6 +4018,23 @@ public static void ComputeAndLockDropTable(int tableInstanceId, Action<LootLocke
40184018
LootLockerAPIManager.ComputeAndLockDropTable(tableInstanceId, onComplete, AddAssetDetails, tag);
40194019
}
40204020

4021+
/// <summary>
4022+
/// Lock a drop table and return information about the assets that were computed.
4023+
/// </summary>
4024+
/// <param name="tableInstanceId">Asset instance ID of the drop table to compute</param>
4025+
/// <param name="AddAssetDetails">If true, return additional information about the asset</param>
4026+
/// <param name="tag">Specific tag to use</param>
4027+
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerComputeAndLockDropTableResponse</param>
4028+
public static void ComputeAndLockDropTable(int tableInstanceId, bool AddAssetDetails, string tag, Action<LootLockerComputeAndLockDropTableResponse> onComplete)
4029+
{
4030+
if (!CheckInitialized())
4031+
{
4032+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerComputeAndLockDropTableResponse>());
4033+
return;
4034+
}
4035+
LootLockerAPIManager.ComputeAndLockDropTable(tableInstanceId, onComplete, AddAssetDetails, tag);
4036+
}
4037+
40214038
/// <summary>
40224039
/// Send a list of id's from a ComputeAndLockDropTable()-call to grant the assets to the player.
40234040
/// </summary>

0 commit comments

Comments
 (0)