@@ -1310,82 +1310,6 @@ public static void RemovingFilesFromAssetCandidates(int assetId, int fileId, Act
1310
1310
}
1311
1311
#endregion
1312
1312
1313
- #region Events
1314
- public static void GettingAllEvents ( Action < LootLockerEventResponse > onComplete )
1315
- {
1316
- if ( ! CheckInitialized ( ) )
1317
- {
1318
- LootLockerEventResponse response = new LootLockerEventResponse ( ) ;
1319
- response . success = false ;
1320
- response . status = false ;
1321
- response . hasError = true ;
1322
- response . Error = "SDk not initialised" ;
1323
- response . text = "SDk not initialised" ;
1324
- onComplete ? . Invoke ( response ) ;
1325
- return ;
1326
- }
1327
- LootLockerAPIManager . GettingAllEvents ( onComplete ) ;
1328
- }
1329
-
1330
- public static void GettingASingleEvent ( int missionId , Action < LootLockerSingleEventResponse > onComplete )
1331
- {
1332
- if ( ! CheckInitialized ( ) )
1333
- {
1334
- LootLockerSingleEventResponse response = new LootLockerSingleEventResponse ( ) ;
1335
- response . success = false ;
1336
- response . status = false ;
1337
- response . hasError = true ;
1338
- response . Error = "SDk not initialised" ;
1339
- response . text = "SDk not initialised" ;
1340
- onComplete ? . Invoke ( response ) ;
1341
- return ;
1342
- }
1343
- LootLockerGetRequest data = new LootLockerGetRequest ( ) ;
1344
- data . getRequests . Add ( missionId . ToString ( ) ) ;
1345
- LootLockerAPIManager . GettingASingleEvent ( data , onComplete ) ;
1346
- }
1347
-
1348
- public static void StartingEvent ( int missionId , Action < LootLockerStartinEventResponse > onComplete )
1349
- {
1350
- if ( ! CheckInitialized ( ) )
1351
- {
1352
- LootLockerStartinEventResponse response = new LootLockerStartinEventResponse ( ) ;
1353
- response . success = false ;
1354
- response . status = false ;
1355
- response . hasError = true ;
1356
- response . Error = "SDk not initialised" ;
1357
- response . text = "SDk not initialised" ;
1358
- onComplete ? . Invoke ( response ) ;
1359
- return ;
1360
- }
1361
- LootLockerGetRequest data = new LootLockerGetRequest ( ) ;
1362
- data . getRequests . Add ( missionId . ToString ( ) ) ;
1363
- LootLockerAPIManager . StartingEvent ( data , onComplete ) ;
1364
- }
1365
-
1366
- public static void FinishingEvent ( int missionId , string signature , string finishTime , string finishScore , LootLockerCheckpointTimes [ ] checkpointsScores , Action < LootLockerFinishEventResponse > onComplete )
1367
- {
1368
- if ( ! CheckInitialized ( ) )
1369
- {
1370
- LootLockerFinishEventResponse response = new LootLockerFinishEventResponse ( ) ;
1371
- response . success = false ;
1372
- response . status = false ;
1373
- response . hasError = true ;
1374
- response . Error = "SDk not initialised" ;
1375
- response . text = "SDk not initialised" ;
1376
- onComplete ? . Invoke ( response ) ;
1377
- return ;
1378
- }
1379
- LootLockerEventPayload payload = new LootLockerEventPayload { finish_score = finishScore , finish_time = finishTime } ;
1380
- payload . checkpoint_times = checkpointsScores ;
1381
- FinishEventRequest data = new FinishEventRequest { signature = signature , payload = payload } ;
1382
- LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest ( ) ;
1383
- lootLockerGetRequest . getRequests . Add ( missionId . ToString ( ) ) ;
1384
- LootLockerAPIManager . FinishingEvent ( lootLockerGetRequest , data , onComplete ) ;
1385
- }
1386
-
1387
- #endregion
1388
-
1389
1313
#region Missions
1390
1314
public static void GettingAllMissions ( Action < LootLockerGettingAllMissionsResponse > onComplete )
1391
1315
{
@@ -1657,7 +1581,7 @@ public static void GetMessages(Action<LootLockerGetMessagesResponse> onComplete)
1657
1581
1658
1582
#endregion
1659
1583
1660
- #region Events
1584
+ #region TriggerEvents
1661
1585
public static void TriggeringAnEvent ( string eventName , Action < LootLockerTriggerAnEventResponse > onComplete )
1662
1586
{
1663
1587
if ( ! CheckInitialized ( ) )
@@ -1815,7 +1739,8 @@ public static void SubmitScore(string member_id, int score, int id, Action<LootL
1815
1739
1816
1740
LootLockerAPIManager . SubmitScore ( request , id . ToString ( ) , onComplete ) ;
1817
1741
}
1818
- public static void ComputeAndLockDropTable ( int tableId , Action < LootLockerComputeAndLockDropTableResponse > onComplete )
1742
+
1743
+ public static void ComputeAndLockDropTable ( int tableInstanceId , Action < LootLockerComputeAndLockDropTableResponse > onComplete )
1819
1744
{
1820
1745
if ( ! CheckInitialized ( ) )
1821
1746
{
@@ -1827,10 +1752,10 @@ public static void ComputeAndLockDropTable(int tableId, Action<LootLockerCompute
1827
1752
onComplete ? . Invoke ( response ) ;
1828
1753
return ;
1829
1754
}
1830
- LootLockerAPIManager . ComputeAndLockDropTable ( tableId , onComplete ) ;
1755
+ LootLockerAPIManager . ComputeAndLockDropTable ( tableInstanceId , onComplete ) ;
1831
1756
}
1832
1757
1833
- public static void PickDropsFromDropTable ( int [ ] picks , int tableId , Action < LootLockerPickDropsFromDropTableResponse > onComplete )
1758
+ public static void PickDropsFromDropTable ( int [ ] picks , int tableInstanceId , Action < LootLockerPickDropsFromDropTableResponse > onComplete )
1834
1759
{
1835
1760
if ( ! CheckInitialized ( ) )
1836
1761
{
@@ -1845,7 +1770,7 @@ public static void PickDropsFromDropTable(int[] picks, int tableId, Action<LootL
1845
1770
PickDropsFromDropTableRequest data = new PickDropsFromDropTableRequest ( ) ;
1846
1771
data . picks = picks ;
1847
1772
1848
- LootLockerAPIManager . PickDropsFromDropTable ( data , tableId , onComplete ) ;
1773
+ LootLockerAPIManager . PickDropsFromDropTable ( data , tableInstanceId , onComplete ) ;
1849
1774
}
1850
1775
#endregion
1851
1776
}
0 commit comments