Skip to content

Commit cd974ec

Browse files
committed
fixed droptable requests
1 parent 08a5424 commit cd974ec

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Runtime/Editor/ProjectSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ internal static SerializedObject GetSerializedSettings()
1717
public ProjectSettings(string path, SettingsScope scopes, IEnumerable<string> keywords = null) : base(path, scopes, keywords)
1818
{
1919
}
20+
2021
public override void OnActivate(string searchContext, VisualElement rootElement)
2122
{
2223
if (gameSettings == null)
@@ -26,6 +27,7 @@ public override void OnActivate(string searchContext, VisualElement rootElement)
2627
// This function is called when the user clicks on the MyCustom element in the Settings window.
2728
m_CustomSettings = GetSerializedSettings();
2829
}
30+
2931
public override void OnGUI(string searchContext)
3032
{
3133
m_CustomSettings.Update();

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static void DebugMessage(string message, bool IsError = false)
7878
return;
7979
}
8080

81-
if (LootLockerConfig.current!=null && LootLockerConfig.current.currentDebugLevel == LootLockerConfig.DebugLevel.All)
81+
if (LootLockerConfig.current != null && LootLockerConfig.current.currentDebugLevel == LootLockerConfig.DebugLevel.All)
8282
{
8383
if (IsError)
8484
Debug.LogError(message);
@@ -1740,7 +1740,7 @@ public static void SubmitScore(string member_id, int score, int id, Action<LootL
17401740
LootLockerAPIManager.SubmitScore(request, id.ToString(), onComplete);
17411741
}
17421742

1743-
public static void ComputeAndLockDropTable(int tableInstanceId, Action<LootLockerComputeAndLockDropTableResponse> onComplete)
1743+
public static void ComputeAndLockDropTable(int tableInstanceId, Action<LootLockerComputeAndLockDropTableResponse> onComplete, bool AddAssetDetails = false, string tag = "")
17441744
{
17451745
if (!CheckInitialized())
17461746
{
@@ -1752,7 +1752,7 @@ public static void ComputeAndLockDropTable(int tableInstanceId, Action<LootLocke
17521752
onComplete?.Invoke(response);
17531753
return;
17541754
}
1755-
LootLockerAPIManager.ComputeAndLockDropTable(tableInstanceId, onComplete);
1755+
LootLockerAPIManager.ComputeAndLockDropTable(tableInstanceId, onComplete, AddAssetDetails, tag);
17561756
}
17571757

17581758
public static void PickDropsFromDropTable(int[] picks, int tableInstanceId, Action<LootLockerPickDropsFromDropTableResponse> onComplete)

Runtime/Game/Requests/DropTableRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public partial class LootLockerAPIManager
4949
{
5050
public static void ComputeAndLockDropTable(int tableInstanceId, Action<LootLockerComputeAndLockDropTableResponse> onComplete, bool AddAssetDetails = false, string tag = "")
5151
{
52-
EndPointClass requestEndPoint = LootLockerEndPoints.PickDropsFromDropTable;
52+
EndPointClass requestEndPoint = LootLockerEndPoints.ComputeAndLockDropTable;
5353

5454
string endPoint = string.Format(requestEndPoint.endPoint, tableInstanceId, AddAssetDetails.ToString().ToLower());
5555

Runtime/Game/Resources/Config/LootLockerConfig.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ MonoBehaviour:
1515
apiKey: d68e80882e497af07338bdff0aa9822c9e609a68
1616
token: 64e5f6d949cfc75ab8470444c91648d8bf6475ef
1717
gameID: 0
18-
game_version: 1.0.0.4
18+
game_version: 1.0.0.0
1919
deviceID: defaultPlayerId
20-
platform: 2
20+
platform: 0
2121
developmentMode: 1
2222
url: https://api.lootlocker.io/game/v1
2323
adminUrl: https://api.lootlocker.io/admin

0 commit comments

Comments
 (0)